Two series types on the same chart

Hi,

Is it possible to have two different series types (bar and line) on the same chart. Please check the attached picture as an example.


Attachment: Untitled_a990d0a8.zip

1 Reply

MM Manikandan Murugesan Syncfusion Team December 23, 2021 10:18 AM UTC

Hi Christian, 

Using the "chartSeriesCreated" event, you can customize the chart series of the pivot chart at run time. Please see the code example below. 
 
Code Example: 
    chartSeriesCreated: function (args) { 
      for (var pos = 0; pos < args.series.length; pos++) { 
        if (pos === 4) { 
          args.series[pos].type = "Line"; 
          args.series[pos].width = 3; 
        } 
      } 
    }, 
 
Meanwhile, we have prepared a sample for your reference. Please find it from below link. 
 
For more information on chart series customization, please see the UG document linked below. 

Please let us know if you have any concerns. 

Regards, 
Manikandan 


Loader.
Up arrow icon