Hello
using Syncfusion charts in Angular - line chart.
currently, we have this:
public primaryXAxis: Object = {
valueType: 'DateTime',
labelFormat: 'yMMM',
intervalType: 'Months',
edgeLabelPlacement: 'Shift',
majorGridLines: { width: 0 },
titleStyle: {
color: 'white',
},
title: "Month"
};
//Initializing Primary Y Axis
public primaryYAxis: Object = {
rangePadding: 'None',
minimum: 21,
maximum: 31,
interval: 1,
lineStyle: { width: 0 },
labelFormat: '${value}',
majorGridLines: { width: 1 },
titleStyle: {
color: 'white',
},
title: "Price Per Share"
};
Thanks for your suggestions and demo sample
IS there a default FontFamily if the one we specify is not available ?
Does it default to Segoe UI ?
Thanks
thanks, Durga, for your help - appreciate it very much
Actually I had another question.
The X-axis line itself (NOT the Major Grid Lines) how can that line width be set
When I inspect it I see the there is a property stroke-width, which if i change in developer tools I get the effect i want.
How to set the stroke width in code?
Hi Jawahar,
We suggest you to specify the lineStyle width for axis to achieve your requirement. Please check with the below snippet and sample.
|
public primaryXAxis: Object = { lineStyle:{width: 3 } }; |
Sample : https://stackblitz.com/edit/angular-k1wfmq-qvshdq
API : https://ej2.syncfusion.com/angular/documentation/api/chart/axisLineModel/#width
Kindly revert us if you have any concerns.
Regards,
Durga Gopalakrishnan.