Live data from Hacker News

C3.js: D3-based reusable chart library

c3js.org

1–10 of 81 posts

Re: C3.js: D3-based reusable chart library

#3
This is nice, easy to use. It is however only using an extremely limited subset of d3 capabilities, which makes me wonder what added value is brought by the fact of making this d3 based compared to other "pure" and lightweight chart libraries which have the same functions [1]

My usual go to library: Flot http://www.flotcharts.org/

Re: C3.js: D3-based reusable chart library

#5

C3 looks nice, but it'd be really great if the library didn't demand passing things in object format. Why can't we have something that implements chaining like D3? It seems a bit counter-intuitive...

I actually prefer passing a declarative configuration object rather than issuing a series of API calls. It is one of the things that had me switch a project from D3 to C3 + crossfilter a while back.

Re: C3.js: D3-based reusable chart library

#6
post #3

This is nice, easy to use. It is however only using an extremely limited subset of d3 capabilities, which makes me wonder what added value is brought by the fact of making this d3 based compared to other "pure" and lightweight chart libraries which have the same functions [1] My usual go to library: Flot http://www.flotcharts.org/

I find it's usually easier to roll my own solution, because these libraries often don't provide the level of customisation I need (or may need in the future). The cost of moving away from them is also nonzero.

Re: C3.js: D3-based reusable chart library

#7
post #5

C3 looks nice, but it'd be really great if the library didn't demand passing things in object format. Why can't we have something that implements chaining like D3? It seems a bit counter-intuitive...

I actually prefer passing a declarative configuration object rather than issuing a series of API calls. It is one of the things that had me switch a project from D3 to C3 + crossfilter a while back.

Really? Perhaps it's just a matter of preference, but this coding style drives me up a fucking wall. Clutters the hell out of your code.

Re: C3.js: D3-based reusable chart library

#8
post #5

C3 looks nice, but it'd be really great if the library didn't demand passing things in object format. Why can't we have something that implements chaining like D3? It seems a bit counter-intuitive...

I actually prefer passing a declarative configuration object rather than issuing a series of API calls. It is one of the things that had me switch a project from D3 to C3 + crossfilter a while back.

I actually prefer builders,now it doesnt mean it has to be one or the other,a lib can implement such an api under the hood.

Re: C3.js: D3-based reusable chart library

#9
The type of chart I've found most useful is heat map charts, and none of the charting library I've looked at provide that:

Here's an example from a Datadog dashboard: https://cloud.githubusercontent.com/assets/1189716/4064956/6...

I wish such a chart style was more common, it's so much more useful than a typical line chart of the median/p9x. Unfortunately, I'm not familiar enough with D3 and such to write my own; it would likely be crap.

Re: C3.js: D3-based reusable chart library

#10
post #5

Earlier quoted context omitted.

I actually prefer passing a declarative configuration object rather than issuing a series of API calls. It is one of the things that had me switch a project from D3 to C3 + crossfilter a while back.

Really? Perhaps it's just a matter of preference, but this coding style drives me up a fucking wall. Clutters the hell out of your code.

I guess that depends on whether the settings you are passing to the chart are coming from somewhere else (say, an API call). If you can just get a JSON object from a backend and pass it directly to the chart, things become much simpler in your code.
Post reply on HN