Hi
I need to display the text as tooltip that what is displayed in legend while mouse over. How can I do this?
For Eg. In Progress on tooltip
Thanks in advance.
i don't think there's a good way to do that, but this client-side hack is one way of doing it:
function UltraChart1_ClientOnShowTooltip(text, tooltip_ref){ var chart = document.getElementById("UltraChart1"); var heightOfLegend = 25; if (tooltip_ref.offsetTop > chart.offsetHeight - heightOfLegend) { tooltip_ref.innerText = tooltip_ref.innerText.substring(0, tooltip_ref.innerText.indexOf("(")); }}
Hai
It works. Thanks. But it shows as planned(6) beacuse I gave the format for tooltip as <ITEM_LABEL>(<DATA_VALUE>). But in legend tooltip I want to show as it is like Planned. That is only <ITEM_LABEL>. How can I set format string seperate for this?
Thanks in advance
Sridhar
add this line:
p.Column = 0;
right after you set:
this.LastPrimitive = p;
and it should work.
I send you the sample website I tried by comparing yours. I just replaced my code to yours. Here also the tooltip for first legend only shown. Others are shown as undefined. If you can try this for my condition it will be easy for achieving this.
that could be because the Row and Column properties of the Text primitive you create are getting set to -1. or perhaps the Value property is null.
i'm attaching the sample project i used in case you want to compare.