You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorry i am still new to this technology, and although I try as much as possible to try/test and look up by myself, today I fail to find how to control the Y axis on my line chart.
I can't get the chart to only display integers (0, 1, 2...) rather than half integers as displayed above...
I haven't found any option in LineChart to change anything.
Any help will be greatly appreciated.
J.
Edit: sorry for wasting anyone's time. I finally found another issue that use OptionsJsonString to provide more options to the chart. I finally found the chartjs document about the tick configuration and found my solution : lineChart_TicketPHour.OptionsJsonString = "{\"scales\": {\"yAxes\": [{\"ticks\": {\"stepSize\": 1}}]}}";
Hope this help someone one day.
The text was updated successfully, but these errors were encountered:
JamesB49
changed the title
line chart - axis options missing the tick spacing
line chart - axis options missing the tick stepSize
May 19, 2020
Hello everyone,
sorry i am still new to this technology, and although I try as much as possible to try/test and look up by myself, today I fail to find how to control the Y axis on my line chart.
I can't get the chart to only display integers (0, 1, 2...) rather than half integers as displayed above...
I haven't found any option in LineChart to change anything.
Any help will be greatly appreciated.
J.
Edit: sorry for wasting anyone's time. I finally found another issue that use OptionsJsonString to provide more options to the chart. I finally found the chartjs document about the tick configuration and found my solution :
lineChart_TicketPHour.OptionsJsonString = "{\"scales\": {\"yAxes\": [{\"ticks\": {\"stepSize\": 1}}]}}";
Hope this help someone one day.
The text was updated successfully, but these errors were encountered: