Click here to Skip to main content
15,892,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to be able to set data labels programatically, os that they appear on top of each point, bar chart or any other graph in an asp.net website in c#.
Can someone please help me?
Thanks in advance.

What I have tried:

I found out that there is a data label property in the graph, but I can't find it.
I am not sure if it's because I am loading data dynamically through code.
Please let me know if there is a way to do this, so that I can view each value of each point on the graph.
I am also changing graph types dynamically, so please lt me know if this works for all types of graphs.
Thanks
Posted
Updated 22-Dec-17 4:05am

1 solution

I found this solution:
series.IsValueShownAsLabel = true;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900