Forum Discussion
Tooltip render changes for custom line chart
- Anonymous5 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.
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.