c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

Histogram charts #750

Open jdittrich opened 10 years ago

jdittrich commented 10 years ago

Use Case: To show the relative distribution of values I would like to display my data in an histogram chart

While a histogram chart looks just like a bar chart, raw data can’t be just used to display an histogram of this data – so called »binning« must take place before (answering the question »how is it different from a regular bar-chart« in #586) .

(I tried to just use the d3.layout.histogram() to do these calculations before using a simple c3 bar chart, but I was unsuccessful with this approach)

masayuki0812 commented 9 years ago

I think this kind of feature is required actually, sot I'll implement this in v0.5. Please give me some time. #16

FRosner commented 9 years ago

:+1: I would also love to have this one available! Does it make sense to allow pre-binned data as well as raw data? In my use case Spark is already computing the bins on the cluster and I just want to visualize the results.

yordis commented 9 years ago

:+1:

FRosner commented 9 years ago

@yordis I have a histogram function available in https://github.com/FRosner/spawncamping-dds/ now. It is more like a front-end specifically built for Spark.

https://github.com/FRosner/spawncamping-dds/blob/master/src/main/resources/ui/app/Histogram.js

k010 commented 9 years ago

:+1:

sambao21 commented 9 years ago

:+1:

ericmillsio commented 8 years ago

:+1:

Gerrrr commented 8 years ago

:+1:

ingvar-lynn commented 7 years ago

👍

boompig commented 6 years ago

Binning is definitely a required feature for a charting library. Any updates on support for this?

dmills1723 commented 5 years ago

Just wanted to comment that there is still a need for proper histogram support.