This is a migrated thread and some comments may be shown as answers.

Chartgrid with SeriesProvider

1 Answer 66 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jeremy
Top achievements
Rank 1
Jeremy asked on 12 Dec 2019, 07:43 PM

     I am creating a dynamic chart with a seriesdescriptorselector that changes the type of the X-axis (DateTimeContinuous or Linear) based on user defined settings.  I am also setting a grid for the horizontal and vertical axis of the chart.  The problem I am having is that only the horizontal lines of the grid are showing up on the chart.  I get no vertical lines at all regardless of whether the horizontal axis is Linear of DateTimeContinuous.  Does the use of a series descriptor selector invalidate the grid lines for the axis?

 

Thank you

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 17 Dec 2019, 12:52 PM

Hello Jeremy,

Can you tell me how you change the X-axis type? In the meantime, here are a couple of things to keep in mind when working with the axis and the gird:

  • Data binding the VerticalAxis and HorizontalAxis properties is not recommended. This is valid if you have a runtime change of the axes. The chart depends on that the axis is Loaded to start rendering it and when stored in the view model the axis visual (ex: LinearAxis) can get out of the visual tree. In this situation when the axis is selected again and it gets back to the visual tree, the WPF framework tells that the axis is loaded, therefore the chart won't need to render it. Those cases lead to visual issues.
  • The chart grid works only with the main axes of the chart. Those set via the RadCartesianChart's HorizontalAxis and VerticalAxis properties. Grid lines won't be shown for the series' axes (set via the chart's series VerticalAxis and HorizontalAxis properties).

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ChartView
Asked by
Jeremy
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or