MichaelVoelkel / ChartJs2QML

QML adaptor for Chart.js 2.x that supports startup animations and tooltips
MIT License
104 stars 21 forks source link

xAxes range is not working as expected #8

Closed PraveenKumarIlla closed 3 years ago

PraveenKumarIlla commented 3 years ago

Hi Team,

I have experienced an issue with chart js. I have defined xAxes as below

"scales": { "xAxes": [{ ticks: { maxTicksLimit: 6, min: 1623177453, max: 1623230798, stepSize: 10669, } }] } I am expecting the ticks to be 6 (i.e., starting from the origin) and the tics values to be 1623177453, 1623188122, 1623198791, 1623209460, 1623220129 and 1623230798.

But the output is giving only 4 ticks (1623177453, 1623198791, 1623220129 and 1623230798).

Please let me know if am doing anything wrong. Please suggest

trends_pic

PraveenKumarIlla commented 3 years ago

Hi Team, Can any one please support me on this

MichaelVoelkel commented 3 years ago

Hi! We only pass this to ChartJS in the backend, this repo is only a wrapper for it. Or is it working fine with the ChartJS part? It seems that ChartJS sees it merely as recommendation in your case...