.Net Charting Controls - Change label format / value

I am trying to get a pie chart using ASP.Net Charting controls. Everything is fine. The value X is the name of a specific item with a Y value. The legend displays the value of X, the size of the slices of the cake corresponds to the value of Y. Everything is fine.

However, I also have a value, like a label attached to the chart, and I would like it to display the value Y instead. How can i do this? I tried the following:

 series.AxisLabel = "#VALY";
 series.LabelFormat = "#VALY";
 series.Label = "#VALY";

Any tips?

Thank!

+3
source share
1 answer

This should have a solution to the problem. "Use Case" 1 and 2 can help with this.

http://blogs.msdn.com/b/alexgor/archive/2008/11/11/microsoft-chart-control-how-to-using-keywords.aspx

+2

Source: https://habr.com/ru/post/1768252/


All Articles