Category labels dont appear on the bottom of the grid?
As far as I understood it, it should pick up the names for the label from @strLCCategory
<ChartCategoryAxis Categories="@strLCCategory">
Which has: "2022-07", "2022-08" in it.
What I am getting:
No labels below that 0 line!
Code below
<GridLayoutItem Column="2" Row="5">
<TelerikChart Height="400px"
Width="700px">
<ChartTitle Text="Line Counts"></ChartTitle>
<ChartTooltip Visible="true"></ChartTooltip>
<ChartLegend Position="ChartLegendPosition.Right"></ChartLegend>
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Line"
Name="@strLCSeries1Field"
Data="@LineCounts"
Width="2"
DashType="@DashType.Solid"
Field="@strLCSeries1Field">
</ChartSeries>
<ChartSeries Type="ChartSeriesType.Line"
Name="@strLCSeries2Field"
Data="@LineCounts"
Width="2"
DashType="@DashType.Solid"
Field="@strLCSeries2Field">
</ChartSeries>
<ChartSeries Type="ChartSeriesType.Line"
Name="@strLCSeries3Field"
Data="@LineCounts"
Width="2"
DashType="@DashType.Solid"
Field="@strLCSeries3Field">
</ChartSeries>
</ChartSeriesItems>
<ChartCategoryAxes>
<ChartCategoryAxis Categories="@strLCCategory">
@*<ChartCategoryAxisLabels>
<ChartCategoryAxisLabelsRotation Angle="-45" />
</ChartCategoryAxisLabels>*@
</ChartCategoryAxis>
</ChartCategoryAxes>
@* <ChartValueAxes>
<ChartValueAxis AxisCrossingValue="@AxisCrossingValue">
<ChartValueAxisLabels></ChartValueAxisLabels>
</ChartValueAxis>
</ChartValueAxes>*@
</TelerikChart>
</GridLayoutItem>
private string[]? strLCCategory;
List<chartLineCountsResult> LineCountsResults = new List<chartLineCountsResult>();
LineCountsResults = clsDataAccessService.doChartInit("LineCounts", GlobalStuff.msDBEnvir);
List<string> Categories = new List<string>();
for (int i = 0; i < LineCountsResults.Count; i++)
{
Categories.Add(LineCountsResults[i].Periods.ToString());
};
string[] strLCCategory = Categories.ToArray();
Can't see why the Category labels dont appear on the bottom of the grid?
Should be seeing:
2022-07 2022-08