Posted 22 January 2019, 4:45 am EST
Is it possible to place the axis labels inside the chart area?
Thanks
Forums Home / Wijmo / General Discussion
Posted by: mavensupport on 22 January 2019, 4:45 am EST
Posted 22 January 2019, 4:45 am EST
Is it possible to place the axis labels inside the chart area?
Thanks
Posted 23 January 2019, 3:08 am EST
Hi,
We are sorry but it is not possible to display the axis labels inside the chart area.
Could you please let us know about your use case so that we may suggest you the best possible alternative.
~Sharad
Posted 24 January 2019, 4:10 am EST
Hello Sharad,
The problem i have is that the y axis numbers can change frequently resulting in chart moving left and right. I would like to fix that so that the chart stays stable. Is there any way to have a fixed width for the y axis? I think this could be a feasible solution
Thanks
Posted 25 January 2019, 4:46 am EST
In this case, you may just simply set the plot margins.
Please refer to the following code snippet and sample:
var theChart = new wijmo.chart.FlexChart('#theChart', {
chartType: 'Line',
bindingX: 'x',
series: [{
binding: 'y'
}],
itemsSource: data1,
plotMargin: '10 20 30 70'
});
https://jsfiddle.net/s8omj6y0/
You may read more about the plotMargin property from the following doc:
https://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.chart.FlexChart.Class.html#plotMargin