Second value point in Bubble Chart

Hi,
how can I show the second value on Chart of Bubble type?
Regards,

3 Replies 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team March 30, 2021 01:09 PM UTC

Hi Massimo, 

Greetings from Syncfusion. 

We have achieved your requirement “Show second value for bubble type” with the help of PrepareStyle event in Windows Forms ChartSeries. Please find the code example below. 

CodeSnippet
chartSeries1.Style.TextOrientation = ChartTextOrientation.Up; 
chartSeries1.PrepareStyle += ChartSeries1_PrepareStyle; 

private void ChartSeries1_PrepareStyle(object sender, ChartPrepareStyleInfoEventArgs args) 
    ChartSeries series = sender as ChartSeries; 
    if (series != null) 
   
        args.Style.Text = "YValue:" + (series.Points[args.Index].YValues[0]).ToString()+ "\n" + "Size: "+ (series.Points[args.Index].YValues[1]).ToString(); 
        args.Handled = true; 
   

Also, we have prepared the sample for your reference. Please find the sample from the below link. 

  
Output
 

Regards, 
Yuvaraj. 


Marked as answer

MA Massimo March 30, 2021 05:27 PM UTC

Dear Yuvaraj,
thank you very much, problem solved.
Regards,


YP Yuvaraj Palanisamy Syncfusion Team March 31, 2021 05:22 AM UTC

Hi Massimo, 

Thanks for your update. Please let us know if you have any further assistance. 

Regards, 
Yuvaraj.


Loader.
Up arrow icon