Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to add tooltip support to my custom visual. Following this guide. Using "SampleBarchart" as a starting point.
From the guide: "interface for coordinates of selected points must be expanded by another TooltipEnabledDataPoint interface and add tooltipInfo attribute to each item of dataPoints array"
Is this what was meant?
export interface TooltipDataItem { displayName: string; value: string; } interface BarChartDataPoint { ... tooltipInfo: TooltipDataItem[]; };
"Then call TooltipManager.addTooltip method in your chart render function"
Thried this:
let bars = this.barContainer.selectAll('.bar').data(viewModel.dataPoints);
...
TooltipManager.addTooltip(bars, (tooltipEvent: TooltipEvent) => { return tooltipEvent.data.tooltip; }, true);
Looks like I have TooltipManager reference missing:
Cannot find name 'TooltipManager'. Cannot find name 'TooltipEvent'.
Did anyone successfully implement custom Visual tooltips when using pbiviz tool?
Solved! Go to Solution.
Thanks!
User | Count |
---|---|
5 | |
5 | |
3 | |
2 | |
2 |
User | Count |
---|---|
10 | |
7 | |
4 | |
4 | |
4 |