|
public primaryYAxis: Object = {
maximumLabelWidth: 21,
enableTrim: true
} |
|
<ejs-chart [margin]='margin'>
</ejs-chart>
public margin: Object = {
left : 20
}; |
Hi,
We are also facing the exact same problem with multiple charts not left-aligning. Unfortunately the suggested solution of adding a set margin to individual charts will not work in our case as the data is dynamic and therefore the Y axis values can and do range from say 0.01 to a few 10,000s.
Is there any way to dynamically calculate the necessary margin based upon the 'maximum' length of the labels displayed on the Y axis ?