Forum Discussion
Custom visual tool-tips for line chart
- 8 years ago
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.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
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.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Any chance somebody can share some up to date code examples of a basic tooltip (i.e. looks like native Power BI) for a custom visual dot chart?