marianogappa/chart

Consider adding histogram support

szaydel opened this issue · 5 comments

This is a great tool to be sure, and I think it would be much better if it supported histograms. Often, when you are just trying to get a sense for some data, histogram is the most useful initial visualization.

I agree. I'd be reluctant to reinvent the wheel, but it seems the wheel hasn't been invented yet: chartjs/Chart.js#3900

There doesn't seem to be Histogram support planned in the short term. I haven't ever coded a histogram chart before, so this sounds like an interesting challenge. Let me think about it.

PRs are also welcome, of course.

Some slow progress seems to be happening on the chartjs side:
chartjs/Chart.js#3900

I'm sorry but I've been too busy to work on this so far; and I don't think I'll be able to any time soon.

It makes sense to wait for the library to implement support for it. If I have spare time, I may just try to implement something with bars, but not really sure if extending from Chart.js into this app is most sensible thing to do.

I'm also looking for histogram support for scientific plotting purposes. I'm wonder if someone could post a jsfiddle using some rough workaround approach (bar charts or something) until this feature is supported.

Here is a jsfiddle that I cobbled together over lunch using a bar chart to make a histogram.

https://jsfiddle.net/s8qas3km/17/