Forum Discussion

powerdav's avatar
powerdav
Regular Visitor
5 years ago
Solved

Tooltip render changes for custom line chart

Greetings everyone,   i'm trying to achieve a goal to render tooltip value as a single value based on hover line, instead of all series of values as default in line chart.   After some research i...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi powerdav 

    If you need to show a tooltip for dots you should render the dots first.

    Please used d3.data method to bind data to each dot. Each data point must contain tooltip data that you want to show.

    After that you need call addTooltip as you do in the code but the first argument must represent d3.selection for dots.

    You can refer to Tooltip utils for tooltip customization in Power BI visuals.

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.