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
175
show duplicate columns values on Tooltip UltraChart
posted

Hello,

I have a table with 3 column: Date, Count, SigCount. I want to show the SigCount value just in the tooltip.

Here is the code:

                dataChart.DataSource = table.DefaultView;
                dataChart.Data.excludedColumns.Clear();
                dataChart.Data.excludedColumns.Add(2);
                dataChart.DataBind();
                dataChart.Axis.X.Labels.SeriesLabels.Visible = true;
                dataChart.Axis.X.Labels.Visible = true;
                dataChart.Axis.X.Labels.ItemFormatString = "<SERIES_LABEL" + format + ">";

                dataChart.Tooltips.Format = TooltipStyle.Custom;
                dataChart.Tooltips.FormatString =    What to put here?

  • 23930
    Offline posted

    Hello Hani,

    I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.

    Thank you for using Infragistics Components.

  • 23930
    Verified Answer
    Offline posted

    Hi Hani,

    Thank you for contacting Infragistics Developer Support.

    I assume you want to show values from a field in your data table in the chart tooltip. In order to do that you can use the IRenderLabel interface. With these interface you can create custom tooltips for your chart. You need to create a class which implements this interface and pass to this class the data table. Then in the ToString method of the interface, return the value from the corresponding row in your table. You can get the row by using the “DATA_ROW” value of the hash table that is the argument in the ToString method.

    I have attached a sample which demonstrates this suggestion.

    Please let me know if you have any additional questions.

    WC_ShowCustomValueInToolTip.zip