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!
Hello,
Please provide information on how the UltraChart is currently setup. Also what type of chart is this?
For customizing the tooltip you can refer to this url: https://es.infragistics.com/help/aspnet/infragistics.webui.ultrawebchart~infragistics.webui.ultrawebchart.ultrachart~tooltips.
You can do additional customizing on rendering labels by implementing the IRenderLabel interface: https://es.infragistics.com/help/aspnet/chart-customize-labels-using-the-irenderlabel-interface
When referring to a particular topic on the documentation you can also post the url of the link to this thread. This will help when understanding the scenario better.
Let me know if you have any questions with this matter. Thank you.
Hi,
thanks you for trying to help me with this issue.
The type of the chart is "LineChart".
It is setup as follows (all that might be relevant on this):
The DataSource is set at runtime. There are different datasources but is is always of type System.Data.DataTable. The table has always two columns: The first contains DateTime values, the second numeric values. The charts X-axis represents the DateTime values, the Y-axis the numeric values. At this time i can see the numeric values when moving over the data series items in the chart. I want to see (at least) both, the date and the numeric value when moving over the items.
Setup of x-axis (relevant info):
<X LineDrawStyle="Solid" Visible="true" RangeMin="0" LineColor="Black" RangeType="Automatic" Extent="20" LogBase="10" RangeMax="0" TickmarkStyle="Percentage" TickmarkInterval="40" TickmarkPercentage="20" NumericAxisType="Linear"><Labels ItemFormatString="<ITEM_LABEL>"SeriesFormatString="" Flip="False" ItemFormat="ItemLabel"></Labels><TimeAxisStyle TimeAxisStyle="Continuous" /></X>
Setup of y-axis (relevant info):
<Y LineDrawStyle="Solid" Visible="True" RangeMin="0" LineColor="Black" RangeType="Automatic" TickmarkInterval="20" Extent="35" LogBase="10" RangeMax="0" TickmarkPercentage="10" NumericAxisType="Linear"><Labels ItemFormatString="<DATA_VALUE:00.##>" SeriesFormatString="" ClipText="True" ItemFormat="DataValue"></Labels><TimeAxisStyle TimeAxisStyle="Continuous"></TimeAxisStyle></Y>
Let me know if you need futher information.
Thank you!