Hello,
I have a problem with gridlines not showing, when i use multiple axes.
In the image below, the MajorGridLines of the axis to the right should be shown as red, and the MinorGridLines should also be visible. Is this a bug, intended or am i just doing something wrong.
I have posted the code used for generating the chart at the bottom of this post.
<TelerikChart>
<ChartTitle Text="Gross domestic product growth /GDP annual %/"></ChartTitle>
<ChartTooltip Visible="true"></ChartTooltip>
<ChartLegend Position="ChartLegendPosition.Top" Align="ChartLegendAlign.Start"></ChartLegend>
<ChartSeriesItems>
<ChartSeries Type="ChartSeriesType.Line" Style="ChartSeriesStyle.Normal" Name="Chile" Data="@Data" Field="@nameof(ModelData.Series1)"></ChartSeries>
<ChartSeries Type="ChartSeriesType.Line" Style="ChartSeriesStyle.Step" Name="India" Data="@Data" Field="@nameof(ModelData.Series2)"></ChartSeries>
<ChartSeries Type="ChartSeriesType.Line" Style="ChartSeriesStyle.Smooth" Name="Haiti" Data="@Data" Axis="Secondary" Field="@nameof(ModelData.Series3)"></ChartSeries>
</ChartSeriesItems>
<ChartCategoryAxes>
<ChartCategoryAxis AxisCrossingValue="crossingValues" Categories="@Categories"></ChartCategoryAxis>
</ChartCategoryAxes>
<ChartValueAxes>
<ChartValueAxis ZIndex="1" Max="100">
<ChartValueAxisLabels Format="{0}%"></ChartValueAxisLabels>
<ChartValueAxisMajorGridLines Visible="true"></ChartValueAxisMajorGridLines>
</ChartValueAxis>
<ChartValueAxis Name="Secondary" ZIndex="12">
<ChartValueAxisLabels Format="{0}%"></ChartValueAxisLabels>
<ChartValueAxisMajorGridLines Color="Red" Visible="true" DashType="DashType.Solid"></ChartValueAxisMajorGridLines>
<ChartValueAxisMinorGridLines Visible="true" DashType="DashType.Dot"></ChartValueAxisMinorGridLines>
</ChartValueAxis>
</ChartValueAxes>
</TelerikChart>
Best Regards,
Emil