Skip to content

Added yAxisLeftWidthHint #331

Merged
timmolter merged 1 commit into
knowm:developfrom
hakantkn:axisWidth
Jul 11, 2019
Merged

Added yAxisLeftWidthHint #331
timmolter merged 1 commit into
knowm:developfrom
hakantkn:axisWidth

Conversation

@hakantkn
Copy link
Copy Markdown
Contributor

@hakantkn hakantkn commented Jul 9, 2019

Added yAxisLeftWidthHint. This fixes #325

Use chart.getStyler().setYAxisLeftWidthHint(yAxisLeftWidth) to control left y axis width.
If the given width is bigger, padding is added to left side. If the given width is smaller it has no effect.
To get actual size of left y axis width use chart.getYAxisLeftWidth()

See TestForIssue325 for details.

Sample screenshot shows default behaviour (0), small width (15) and a big enough width (55) in each column:
image

@timmolter timmolter merged commit 3e486c7 into knowm:develop Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Control axis margin width

2 participants