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
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
Have you been able to resolve your issue ? If you still have any concerns or questions I will be glad to help. If you need any additional assistance don’t hesitate to ask.
Hi Georgi,
I apllied your proposed solution but i only get one label on one scatter point. I have the following datatable:
Fund AnnualiseVolatility AnnualisedReturn
------- ---------------------- ---------------------
Fund A 4.32% 12.20%
Fund B 12.91% 3.99%
Fund C 5.29% -7.27%
Then I set the columnx =1, columnY=2 and the group by column is 0
I added your proposed code on the same function and i get the scatter chart and it successfully add a label on one scatter point. Can i do the same for every scatter point?
Thanks again!
Thanks for your response, but could you please tell me how many series are you using in your scenario ? Could you please modify my sample to reproduce your issue and revert it back to me. I`ll be glad to research it for you. The mentioned settings works properly for each series, so it is very difficult to guess what is the reasons for this behavior in to your scenario without more details.
Please upload you sample and I`ll try to provide you solution.