Dear all,
I have a bubble chart in one windowsform where the size of the bubbles in the series is depending on some variables.
I'm reporting here below the code related to the chart:
Now, what I'm not able to do is to display as data labels the size of the bubble which is for me the real important data to show. I thought to differentiate the series instead of having only one and then use the statementCode:Form17.Chart1.Series("Series1").Points.AddXY(1, 2, CrossTS) Form17.Chart1.Series("Series1").Points.AddXY(1, 4, CrossAS) Form17.Chart1.Series("Series1").Points.AddXY(4, 2, CrossTD) Form17.Chart1.Series("Series1").Points.AddXY(4, 4, CrossAD) Form17.Chart1.Series("Series1").ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Bubble Form17.Chart1.Series("Series1").MarkerStyle = MarkerStyle.Circle Form17.Chart1.ChartAreas(0).AxisX.MajorGrid.LineDashStyle = ChartDashStyle.NotSet Form17.Chart1.ChartAreas(0).AxisY.MajorGrid.LineDashStyle = ChartDashStyle.NotSet Form17.Chart1.ChartAreas(0).AxisX.LabelStyle.Enabled = False Form17.Chart1.ChartAreas(0).AxisY.LabelStyle.Enabled = False Form17.Chart1.ChartAreas(0).AxisX.LineWidth = 0 Form17.Chart1.ChartAreas(0).AxisY.LineWidth = 0 Form17.Chart1.ChartAreas(0).AxisX.MajorTickMark.Enabled = False Form17.Chart1.ChartAreas(0).AxisY.MajorTickMark.Enabled = False
but I was wondering whether you have any other kind of suggestion.Code:Form17.Chart1.Series("SeriesX").Label = variablename
Thanks,
A.




Reply With Quote
