Hi Tony,
Thanks for using Syncfusion products.
We have prepared a sample based on your requirement. We can
get X-axis label through find the X-Axis visible Range min, max and interval
and calculate the label value based on this information.
Please find the below code snippet to achieve this.
[C#]
//Find Min, Max and Interval Range
of primaryXAxis
double
minX = chartModel.PrimaryXAxis.VisibleRange.Min;
double
maxX = chartModel.PrimaryXAxis.VisibleRange.Max;
double
intrvl = chartModel.PrimaryXAxis.VisibleRange.Interval;
//Add
X-Axis label to List
X_label.Add(minX);
while
(minX < maxX)
{
X_label.Add(minX+intrvl);
minX = minX + intrvl;
i++;
}
[ASPX]
<ul>
<b>Display
X-Axis Label in View Page</b>
@foreach (var
label in (List<double>)ViewData["label"])
{
<li>
@label
</li>
}
</ul>
Please download the sample with screenshot from the below
link.
Please let us know your concerns.
Thanks,
Bharathiraja K.
110216_e84dfa18.zip