How to display formatted values on the graph X Axis or Y Axis RRS feed

  • Question

  • I need the formatted values for  Y Axis display values. Ex(20,00,000)

    Here I am providing few lines of code which may help to figure out the solution.  Thanks in advance

      chart.DataSource = data;
                Series series = chart.Series["default"];
                seriesColor = series.Color; // save the original color in a variable
                series.XValueMember = "XText";
                series.YValueMembers = "YText";

                if ((graphType == GraphType.Pie) || (graphType == GraphType.Doughnut) || (graphType == GraphType.Funnel))
                    IEnumerable<DataPoint> pt = series.Points.FindAllByValue(0.0);
                    foreach (DataPoint item in pt)
                        item.IsEmpty = true;
                    series.EmptyPointStyle.IsValueShownAsLabel = false;

    • Moved by DotNet Wang Wednesday, December 16, 2015 2:24 AM
    Tuesday, December 15, 2015 11:55 AM

All replies

  • Hi Shravan,

    Your case more related to programming with the charting controls. I will move your case to

    .NET Framework > Chart Controls for .NET Framework

    forum for better support.

    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, December 16, 2015 2:23 AM