frappe / charts

Simple, responsive, modern SVG Charts with zero dependencies
https://frappe.io/charts
MIT License
14.9k stars 716 forks source link

The display of the y-axis is not truncated even if the data is more than 100,000,000. #351

Open fkrhtmq123 opened 2 years ago

fkrhtmq123 commented 2 years ago

Expected Behaviour

The display of the y-axis is not truncated even if the data is more than 100,000,000.

Actual Behaviour

If the data is 100,000,000, the mark on the y-axis is cut off.

NOTE: Add a GIF/Screenshot if required.

y-axis cut

Frappé Charts version: Codepen / Codesandbox:

https://codesandbox.io/s/vue-frappe-chart-example-p7rkz?file=/src/components/frappeChart.vue

question

Is there an option to take a comma in a thousand units without cutting the mark on the y-axis even if the data is more than 100,000,000?

and

no M, K

// default
100000000

// question & request
100000000 => 100,000,000

// I know, but you can't use it.
axisOptions = {
    // shortenYAxisNumbers: true,  => 100 M
};