Hi,
I am working in .net 4.5 and implementing charting in my asp.net page. everything works fine. i am facing some tricky situation.
Here are my sample values:
X-Axis : DEC, NOV,OCT,SEP, AUG,JUL
Y-axis value : 0,93,99,0,0,0
The only way without increasing the Y-axis maximum to show the datapoint label will be changing the Barlabel style as like below on my sample.
Hope this helps to others also. Any other suggestions are most welcome.
if (AverageScore >= 70 && AverageScore < 98) { dp.LabelForeColor = System.Drawing.Color.FromArgb(121, 167, 118); dp.Color = System.Drawing.Color.FromArgb(121, 167, 118); } if (AverageScore >= 98) { dp.Color = System.Drawing.Color.FromArgb(121, 167, 118); dp["BarLabelStyle"] = "Center"; }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.