Switch chart series

Hello, I want to create a combox that can switch series through the MVVM mode. It can also switch the display in the chart, with a RangeColumnSeries chart from 0 to 30 on the horizontal axis or a spline chart from 0 to 1200 on the horizontal axis


3 Replies

HK Hemalatha Kondappakumareshan Syncfusion Team July 24, 2025 12:57 PM UTC

Hi Tom,

Thank you for your feedback. We've reviewed your query and prepared a sample that demonstrates how to use a ComboBox to switch chart series in MVVM mode.


The sample includes a ComboBox that allows switching between two chart types:

  • A RangeColumnSeries chart with a horizontal axis ranging from 0 to 30.
  • A Spline chart with a horizontal axis ranging from 0 to 1200.

We've attached the sample along with a demonstration video for your reference.

Please take a moment to review them, and don’t hesitate to reach out if you have any further questions or need additional assistance. We're happy to help!


Regards, 

Hemalatha


Attachment: ChartSample_177b7be8.zip


TO Tom July 28, 2025 07:43 AM UTC

I want to achieve this effect, what should I do? Beyond the different lines on the Yaixs, the color of the column is also different

e0c2ed39-de45-46b0-8f71-d9c152b94a58_5.png




PM Priyadharshni Murugan Syncfusion Team July 29, 2025 02:27 PM UTC

Hi Tom,

 

We’ve updated the sample to reflect your requirement, including differentiated lines on the Y-axis and distinct column colors for each data point. Please review it on your end and let us know if you need any further assistance.

 

Thank you!


Attachment: SwitchChart_8aa3f3d3.zip

Loader.
Up arrow icon