Hi Toan,
We can achieve your requirement using width property in the legendSettings of the chart. Based on that we have prepared a sample for your reference. Please find the sample, code snippet and screenshot below.
Code Snippet:
|
// add your additional code here
<ejs-chart style='display:block' align='center' id='chartcontainer' [title]='title'
[primaryXAxis]='primaryXAxis' [primaryYAxis]='primaryYAxis' [tooltip]='tooltip' (load)='load($event)'
[chartArea]='chartArea' [width]='width' [legendSettings]="legendSettings">
<e-series-collection>
<e-series [dataSource]='data' type='Line' xName='x' yName='y' name='Germany' width=2
[legendShape]="shape" [marker]='marker'> </e-series>
<e-series [dataSource]='data1' type='Line' xName='x' yName='y' name='England' width=2
[legendShape]="shape1" [marker]='marker'> </e-series>
</e-series-collection>
</ejs-chart>
// add your additional code here
public legendSettings: Object = {
width: '100',
enablePages: false
};
// add your additional code here
|
Screenshot:
Let us know if you have any concerns.
Thanks,
Srihari