c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Provisioning for Bubble Chart

Open venkatasandeepd opened this issue 9 years ago • 4 comments

Can you provide Bubble chart along with other chart types ?

venkatasandeepd avatar Dec 08 '16 07:12 venkatasandeepd

To give some more explanation on this type of chart:

A bubble chart is a type of chart that displays three dimensions of data. Each entity with its triplet (v1, v2, v3) of associated data is plotted as a disk that expresses two of the vi values through the disk's xy location and the third through its size. [...] Bubble charts can be considered a variation of the scatter plot, in which the data points are replaced with bubbles. [...] The sizes of the bubbles are determined by the values in the third data series.

From: https://en.wikipedia.org/wiki/Bubble_chart

Here's an example of a bubble chart from NVD3.js: http://nvd3.org/examples/scatter.html.

jschulenklopper avatar Jan 24 '17 08:01 jschulenklopper

@dhvsandeep I think you can do your bubble chart using the scatter plot:

http://c3js.org/samples/chart_scatter.html

And passing a function to the "point.r" configuration to return different size depending on your data.

Do you agree?

panthony avatar Mar 24 '18 10:03 panthony

Thank you very much for replying. I agree with you @panthony, in-fact, I have done the similar thing for another use case.

When I submitted this feature request, what I had in my mind is, grouping of bubbles by size without axis requirement, and all the necessary info can be shown in tooltip. Please checkout the following examples.

https://bl.ocks.org/mbostock/4063269 http://bl.ocks.org/phuonghuynh/54a2f97950feadb45b07

venkatasandeepd avatar Mar 29 '18 08:03 venkatasandeepd

@dhvsandeep Alright! But don't hold your breath, there is so much to do already regarding bug fixes and enhancements :sob:

panthony avatar Mar 29 '18 08:03 panthony