xch89820 / Chart.Funnel.js

The funnel plugins for Chart.js 2.0
MIT License
33 stars 57 forks source link

Charts are not displaying like cone or trapezium when the data difference between two fields is minimal #5

Open mitrin359 opened 7 years ago

mitrin359 commented 7 years ago

Hi, after loading my data, the chart is displaying like below using chart.funnel.js http://www.mediafire.com/view/8n4e5hdby3u311n/chartjs%20chart.jpg#

but I want the chart to look like below, here I'm using kibana http://www.mediafire.com/view/n4fzdp6xzpn0p9h/Kibana%20chart.jpg#

Can you please help me to solve this Thank you

xch89820 commented 7 years ago

Default Chart.Funnel.js will use the real percentage to render You can use 'fake' number (like [1000,900,800,...] ) to render and change tooltips.callbacks.label options tooltips: { callbacks: { title: function (tooltipItem, data) { return ''; }, label: function (tooltipItem, data) { return 'you real value' }; } }