Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
380
Custom Tooltip on UltraWebChart
posted

Hi all,

how can i display custom ToolTips which relies on more than one data column when moving over data series items.

These code snippet displays the Y-Axis values as ToolTip:

this.CHART_H2O.Tooltips.Display = TooltipDisplay.MouseMove;

this.chart.Tooltips.Format = TooltipStyle.Custom;

this.chart.Tooltips.FormatString = "<DATA_VALUE:00.##>";

What I need is the X-Axis value plus the Y-Axis value such as "(<Y-Value>, <X-Value>)". Even better would be a szenario in which i can display a third column value in the tooltip like this: "(<Y-Value>:<Z-Value>, <X-Value>)"

The documentation is a little poor on the topic.

I'm using Version 10.3

 

Thanks!

Parents Reply
  • 375
    posted in reply to Dominik

    Hi have similar requirement 

    i have a chart which has a timeseries date.

    x axis label is formated as

    xAxis.Labels.ItemFormatString = "<ITEM_LABEL:MMM>";

     

    y axis label is formated as

    yAxis.Labels.ItemFormatString = "<DATA_VALUE:#0.#>";

     

    i have implemented IRenderLabel as shown in following example.

    help.infragistics.com/.../

    but i am not getting how the hashtable is to be created and added to the labelhash.

    in the above example following is the code used for labelhash but i am not getting what MY_VALUE is...i have already assigned Itemformatstring to x and y axis which i cant change

    thanks

    utkarsh

Children