Prabha Posted April 24, 2008 Report Share Posted April 24, 2008 How to format the pointlabel. I displaying the series total in Stacked chart. Its getting in default format (Eg:103568). But i need to format & display it as 103,568. Need help Link to comment Share on other sites More sharing options...
Frank Posted April 24, 2008 Report Share Posted April 24, 2008 chart.AxisY.DataFormat.Format = AxisFormat.Number; Link to comment Share on other sites More sharing options...
darkainsoul Posted November 21, 2008 Report Share Posted November 21, 2008 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 More sharing options...
TomasT Posted November 21, 2008 Report Share Posted November 21, 2008 Hi, 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. Regards, TT Link to comment Share on other sites More sharing options...
darkainsoul Posted November 22, 2008 Report Share Posted November 22, 2008 Thanks a lot!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.