Chart padding issue

asked 2021-09-18 03:41:14 +0800

bztom35 gravatar image bztom35
103 4

I am trying to add some space padding to the right side of chart to prevent cut off.
It didn't work or had no effect if I specified a min and max value for the Axis.

Maybe, I didn't use it correctly?

    xAxis.setMaxPadding(0.07); //add padding to the plot.

image description

delete flag offensive retag edit


My current work around is to add a day to the max x-axis range.

bztom35 ( 2021-09-18 04:10:00 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-09-18 04:11:01 +0800

bztom35 gravatar image bztom35
103 4

updated 2021-09-18 04:11:16 +0800

My current work around is to add a day to the max x-axis range. Not the best solution but it will work in a pinch.

xAxis.setMax(endDomainDate.getTime() + 24 * 60 * 60 * 1000 );

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2021-09-18 03:41:14 +0800

Seen: 1 times

Last updated: Sep 18 '21

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More