Remove the white spaces on the chart when we using drawLabels: false. I am using multiple x-axes and no of x-axis increase the empty white space on the x-axis is also increasing.
- Jerin Mathew asked 3 years ago
-
Hey Jerin, you also need to set axis.drawMajorTicks = false and drawMinorTicks = false. However I just noticed that there is some unexplained padding in the SciChartSurface so I will remove that and push an update to npm. Do you have a SciChart license? If so, activate it, then your forum profile will show as fully licensed. Instructions here: https://www.scichart.com/licensing-scichart-js/
-
Hi Andrew, Can you please provide the version number you have updated this. The above-mentioned keys I have tried but the space is still there.
-
We’ve not published it yet, I will notify you in the forum by answering the question when we have a version published with a fix.
- You must login to post comments
Hi Jerin, we just published version 1.1.1382 containing the fix. Please check it out.
- Michael Klishevich answered 3 years ago
- You must login to post comments
Hi Jerin
Try getting build 1.1.1382 of SciChart JS from npm.
Then, set the following code:
sciChartSurface.padding = new Thickness(0, 0, 0, 0); // Optional, set padding of chart. Default = 10
xAxis.drawLabels = false;
xAxis.drawMajorTicks = false;
xAxis.drawMinorTicks = false;
Additional documentation has been uploaded covering how padding works in SciChart.js Chart, Axis Labels and Axis Title here.
Let me know if that helps.
- Andrew Burnett-Thompson answered 3 years ago
- last edited 3 years ago
-
Thanks, Andrew Burnett-Thompson.. It’s working fine and looking good….
- You must login to post comments
Please login first to submit.