SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0
0

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.

Version
1.1.1359
  • Andrew Burnett-Thompson
    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/
  • Jerin Mathew
    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.
  • Andrew Burnett-Thompson
    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 to post comments
1
1

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.

  • Jerin Mathew
    Thanks, Andrew Burnett-Thompson.. It’s working fine and looking good….
  • You must to post comments
1
1

Hi Jerin, we just published version 1.1.1382 containing the fix. Please check it out.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.