@@ -24,19 +24,18 @@ You can use the `Format` parameter to apply standard [numeric format strings](ht
2424
2525> caption Format the labels on the Value and Category Axes
2626
27- <!-- REPL skipped due to https://github.com/telerik/blazor-repl/issues/323 -->
28- <div class =" skip-repl " ></div >
2927```` RAZOR
3028Standard number format strings and rotate the labels of the Category Axis
3129
3230<TelerikStockChart Width="700px"
33- Height="450px"
34- DateField="@nameof(StockDataPoint.Date)">
31+ Height="450px"
32+ DateField="@nameof(StockDataPoint.Date)">
3533
3634 <StockChartCategoryAxes>
3735 <StockChartCategoryAxis BaseUnit="@ChartCategoryAxisBaseUnit.Months">
38- <StockChartCategoryAxisLabels Format="{0:D}"></StockChartCategoryAxisLabels>
39- <StockChartCategoryAxisLabelsRotation Angle="30"></StockChartCategoryAxisLabelsRotation>
36+ <StockChartCategoryAxisLabels Format="{0:D}">
37+ <StockChartCategoryAxisLabelsRotation Angle="30"></StockChartCategoryAxisLabelsRotation>
38+ </StockChartCategoryAxisLabels>
4039 </StockChartCategoryAxis>
4140 </StockChartCategoryAxes>
4241
@@ -48,23 +47,28 @@ Standard number format strings and rotate the labels of the Category Axis
4847
4948 <StockChartSeriesItems>
5049 <StockChartSeries Type="StockChartSeriesType.Candlestick"
51- Name="Product 1"
52- Data="@StockChartProduct1Data"
53- OpenField="@nameof(StockDataPoint.Open)"
54- CloseField="@nameof(StockDataPoint.Close)"
55- HighField="@nameof(StockDataPoint.High)"
56- LowField="@nameof(StockDataPoint.Low)">
50+ Name="Product 1"
51+ Data="@StockChartProduct1Data"
52+ OpenField="@nameof(StockDataPoint.Open)"
53+ CloseField="@nameof(StockDataPoint.Close)"
54+ HighField="@nameof(StockDataPoint.High)"
55+ LowField="@nameof(StockDataPoint.Low)">
5756 </StockChartSeries>
5857 </StockChartSeriesItems>
5958
6059 <StockChartNavigator>
61- <StockChartNavigatorCategoryAxisLabels Format="" Template=""></StockChartNavigatorCategoryAxisLabels>
60+ <StockChartNavigatorCategoryAxis>
61+ <StockChartNavigatorCategoryAxisLabels>
62+ <StockChartNavigatorCategoryAxisLabels Format="dd MMM yyyy"></StockChartNavigatorCategoryAxisLabels>
63+ </StockChartNavigatorCategoryAxisLabels>
64+ </StockChartNavigatorCategoryAxis>
65+
6266 <StockChartNavigatorSeriesItems>
6367 <StockChartNavigatorSeries Type="StockChartSeriesType.Line"
64- Name="Product 1"
65- Data="@StockChartProduct1Data"
66- Field="@(nameof(StockDataPoint.High))"
67- CategoryField="@(nameof(StockDataPoint.Date))">
68+ Name="Product 1"
69+ Data="@StockChartProduct1Data"
70+ Field="@(nameof(StockDataPoint.High))"
71+ CategoryField="@(nameof(StockDataPoint.Date))">
6872 </StockChartNavigatorSeries>
6973 </StockChartNavigatorSeriesItems>
7074 </StockChartNavigator>
@@ -146,8 +150,6 @@ In a *value axis* label template, you can use the following fields:
146150
147151> caption Custom templates in labels
148152
149- <!-- REPL skipped due to https://github.com/telerik/blazor-repl/issues/323 -->
150- <div class =" skip-repl " ></div >
151153```` RAZOR
152154Label templates
153155
@@ -179,7 +181,9 @@ Label templates
179181 </StockChartSeriesItems>
180182
181183 <StockChartNavigator>
182- <StockChartNavigatorCategoryAxisLabels Format="" Template=""></StockChartNavigatorCategoryAxisLabels>
184+ <StockChartNavigatorCategoryAxis>
185+ <StockChartNavigatorCategoryAxisLabels Template="#= value.toLocaleDateString('en-US') #"></StockChartNavigatorCategoryAxisLabels>
186+ </StockChartNavigatorCategoryAxis>
183187 <StockChartNavigatorSeriesItems>
184188 <StockChartNavigatorSeries Type="StockChartSeriesType.Line"
185189 Name="Product 1"
0 commit comments