Jump to content
Software FX Community

Formatting PointLabels


Recommended Posts

  • 6 months later...

Good day mrs.

I have 2 bars and i want give a one bar the Currency format and the other bar with the Percentage format

is possible??

this is my try

 chGraficaCarrito.Series[8].AxisY.DataFormat.Format =

AxisFormat.Currency; chGraficaCarrito.Series[9].AxisY.DataFormat.Format = AxisFormat.Percentage ;





Link to comment
Share on other sites


If you have only one Y axis, the code you are using is basically setting the Format twice to the same Axis object. In your code, you are basically setting AxisFormat to Percentage for both series.

Please note that it does not make much sense to set the Axis to use two different formats. What you need to do is create a secondary Y axis, assign one of your series to it and then modify the format for that particular axis:

ChartFX.WinForms.SeriesAttributes series9 = chart1.Series[9];   

serie1.AxisY = chart1.AxisY2;

serie1.AxisY.DataFormat.Format = AxisFormat.Percentage ;

Hope this helps.
Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...