Hi Aparna,
Greetings from Syncfusion.
We have analyzed your query. And we can achieved your requirement by using MutiColoredLine series type in series. While using this series type, you can specify the segment axis and segments which you can set the color and values.
Please find the below code snippet to achieve this requirement,
Component.ts:
public segments: Object[] = [{
value: 50,
color: 'red'
}, {
value: 80,
color: 'green'
}, {
color: 'red'
}];
HTML:
<e-series-collection>
<e-series [dataSource]='data' type='MultiColoredLine' xName='y' yName='x' name='Germany' width=2 segmentAxis='Y' [segments]='segments'> </e-series>
</e-series-collection> |
Screenshot:
Kindly revert us, if you have any concerns.
Regards,
Baby.