Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New function xAxisLegendEvery with autodetect #2

Open
ddTech opened this issue Nov 24, 2017 · 0 comments
Open

New function xAxisLegendEvery with autodetect #2

ddTech opened this issue Nov 24, 2017 · 0 comments

Comments

@ddTech
Copy link
Collaborator

ddTech commented Nov 24, 2017

When using longer time series or data points along the x axis, the labels can become unreadable even when placed at an angle, simply because the lables need more space than available.

xaxislabelevey_without

Therefore I added a new functionality which allows to omit labels. Instead of "Jan, Feb, Mar, Apr,..." "Jan, Mar..." or "Jan, Apr, ..." will be printed depending on the setting of xAxisLegendEvery (xAxisLabelEvery would actually be the better name). If this value is set to -1 the iteration will be detected automatically based on the value of xAxisLegendEverySpacing. This is the preferred setting as it automatically recalculates when the chart is being resized and the labels always remain readable.

xaxislabelevey_setauto

There is a third property xAxisLegendEveryOffset which allows the iteration to shift (i.e. start with a certain month).

Regards

Frank

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

No branches or pull requests

1 participant