chartjs / Chart.js

Simple HTML5 Charts using the <canvas> tag
https://www.chartjs.org/
MIT License
64.74k stars 11.92k forks source link

How to add scale breaks to a chart? #6737

Open LiaoFunan opened 4 years ago

LiaoFunan commented 4 years ago

Scale breaks(Axis breaks) can be used to shrink a particularly large segment and enhance readability for the smaller segments in your chart, similarly like this (canvasjs) https://canvasjs.com/javascript-charts/chart-axis-scale-break/ or this(c3.js), http://jsfiddle.net/tdfpj3oc/

My dataset usually contains one or two very large values with the other much smaller values(smaller in comparison),Is there any way to create the scale breaks in chartjs? If not, are there any alternative way or plugins to do it?

leeoniya commented 4 years ago

have you tried using logorithmic scales?

sudansth commented 1 year ago

Any updates on this? Is there a way to add breaks in the axis like the Highcharts has by using breaks on the axis?

Screenshot 2023-03-09 142425

CorneliusKluge commented 1 year ago

Would love an update on this as well, since the logarithmic scale as a workaround isn't working for me.