Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3220
xamDataChart: Set X-Axis to null
posted

Hello,

I set my series in code behind, since my data are dynamically, also the data source of the xAxis. When I create new series in code behind and also setting the x-axis, the data are shown correctly in the chart. But when I delete all series and also set the x-axis items source to null, the x-axis is still showing the old x-axis lables.

1) Correct loaded chart:

2) when switching to empty data, the chart is empty but the x-axis remains.

Code behind:

How can I clear the x-axis?