c3 icon indicating copy to clipboard operation
c3 copied to clipboard

is it possible to customer c3.js to meet my new type of chart requirements?

Open madasuk opened this issue 12 years ago • 3 comments

I have a requirement of the new graphs Zoomable Sunburst With Updating Data (http://bl.ocks.org/kerryrodden/477c1bfb081b783f80ad), Heat Map (http://jsfiddle.net/indiemaps/gzPDU/), Zoomable Circle Packing chart (http://bl.ocks.org/mbostock/7607535), Co-occurrence Matrix (http://bost.ocks.org/mike/miserables/) Is there is any possibility for me to customize c3.js to yield these charts?

madasuk avatar Nov 27 '14 05:11 madasuk

Hi @madasuk!

So, the thing with adding more charts is that it adds more lines to the codebase for everyone who uses C3. By definition, C3 can't (and probably shouldn't) be all things to all people (That's what D3 is for! :smile:).

How frequently do people need to make those kinds of charts? I can't even think of how one would productively use some of them. Meanwhile, line, pie and donut charts are used by everybody — in fact, adding more bloat through unnecessary charts might decrease use of C3 by the people who appreciate its speed and simplicity. C3's primary use case is to quickly and easily produce basic charts.

So, I'm closing and marking as wontfix. If people comment on this issue and demonstrate there's actual demand for these charts, it's possible to reopen it and begin discussions about adding them. Another idea would be to add a sort of modular layer atop C3 that allows new charts to be added on a per-user basis (similar to how D3 uses plugins), but that's kind of outside the scope of this issue.

aendra-rininsland avatar Nov 27 '14 10:11 aendra-rininsland

I also have a requirement of graph Zoomable Sunburst With Updating Data . How can I use c3js to add this chart ?

mervinva avatar Jan 04 '17 07:01 mervinva

Sunburst charts are super useful! Consider if you will parent child groupings... for things like:

  • Fruits (25%) -- Apple (20%) -- Banana (20%) -- Orange (20%) -- Cherry (20%) -- Strawberry (20%)
  • Vegetable (25%) -- Lettuce (33%) -- Brussels Sprouts (33%) -- Carrot (33%)
  • Meat (25%) -- Pork (33%) -- Beef (33%) -- Chicken (33%)
  • Dairy (25%) -- Yogurt (25%) -- Cheese (25%) -- Ice Cream (25%) -- Milk (25%)

Here a sunburst would allow you to do an inner ring with (Fruit, Vegetable, Meat, Dairy) and an outer ring of all the rest of them but segmented off to match their parents in the inner ring. The following example is simplified and shows age ranges (larger groups ex 18-34, and smaller child groups 18-24, 25-29, 30-34) screen shot 2018-06-12 at 3 22 30 pm

TheDesignerXD avatar Jun 12 '18 22:06 TheDesignerXD