team-moeller / better-access-charts

Better charts for Access with chart.js
MIT License
38 stars 14 forks source link

Add Option to Set StepSize #142

Closed PacManPk closed 1 year ago

PacManPk commented 1 year ago

Hello,

First of all, I thank you very much for this wonderful code for plotting graphs. Secondly, I'm using last version that uses old web browser control (as I along with all my users of my project have Access 2019 or lower) and I'm unaware if latest version with new web browser control might have this feature of StepSize.

How can we set StepSize on an axis i.e. instead of automatically setting next value of y-axis, I want to set it myself as automatically adjusted values are being cluttered thus not readable. For instance, on y-axis, values/labels are spaced with 1 from 0 to 10 (1,2,3,4,5,6,7,8,9,10) and I want to show it like (0,2,4,6,8,10) with StepSize 2. And same for x-axis. How can I do that?

I hope I could explain my question and made it clear.

Best Regards

team-moeller commented 1 year ago

Thanks for the flowers. I really enjoyed creating Better Access Charts. I think I got your point clearly. With the "old" web browser control, Chart.js can only be used up to version 2.9.4. For information about the "stepSize" parameter, see the documentation for that release. https://www.chartjs.org/docs/2.9.4/axes/cartesian/linear.html#tick-configuration-options So, it's possible to use this in your scenario.

team-moeller commented 1 year ago

We now know that it is possible to use the desired "stepSize". Since I will no longer create a version for chart.js 2.9.4 with the "old" webbrowser control, it is up to you to carry out the necessary steps yourself. For your support, I have documented the necessary steps in a small guide in the wiki: https://github.com/team-moeller/better-access-charts/wiki/add-a-feature

If there are no further questions, please let me know if we can close this issue.

team-moeller commented 1 year ago

Released with version 3.21.12 the property StepSize for axis is available.