How can I use a d3 library (like c3.js) on the server side to generate charts in nodejs?
Asked Answered
S

1

6

I'm trying to generate charts using c3js, which is a d3 library for easier charting.

I see that you can use plain d3 to generate charts on the server side using jsdom since there is an npm module for d3. This is the guide I was following for that process: http://www.gregjopa.com/2013/11/render-svg-charts-server-side-with-d3-js/

However, there is no npm module for nvd3 or c3js.

How can I use these libraries on the server side to generate charts for use on the client side?

Stonge answered 23/11, 2015 at 22:42 Comment(2)
npm install c3 I don't work with this library but I think this is what you are looking for.Whipsaw
This sounds like a question to ask the c3js or nvd3 developers…Pya
D
1

One library that does have a Node.js build is ZingChart. Trying the library is free, however the Node build is for licensed customers. Full disclosure, I'm on the ZingChart team. However if you'd like more info, feel free to reach out.

Dys answered 24/11, 2015 at 16:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.