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
235
Scatter Point names
posted

I am using 3 columns to display a chart: fund name, annual return, annual volatility.

I am using the following code to bind the chart:

mychart.scatterchart.columnX =1

mychart.scatterchart.columnY =2

mychart.scatterchart.UseGroupByColumn = True

mychart.scatterchart.GroupByColumn = 0

 

Everything OK so far. I would like to display the 'fund name' on every scatter point if possible.  On the tooltip i display the required info as <SERIES_LABEL>

Is there any way to display this info 'permanently' on each scatter point?

 

Thanks

Parents
  • 53790
    posted

    Hi,

    One possible approach to achieve desired behavior could be if you are using ChartTextAppearance with ScatterChartAppearance for example:

    Infragistics.UltraChart.Resources.Appearance.ChartTextAppearance chartTextAppearance1 = new Infragistics.UltraChart.Resources.Appearance.ChartTextAppearance();

    chartTextAppearance1.ChartTextFont =new System.Drawing.Font("Arial", 7F);

    chartTextAppearance1.ClipText =false;

    chartTextAppearance1.ItemFormatString ="<DATA_VALUE:00.00>";

    chartTextAppearance1.Visible =true;

    ScatterChartAppearance sca = new ScatterChartAppearance();

    sca.ChartText.Add(chartTextAppearance1);

    this.ultraChart1.ScatterChart = sca;

    Please let me know if you have any questions.,

    Regards

Reply Children