Hacker News new | ask | show | jobs
by pessimism 4007 days ago
If anyone has a good library or a pro tip for making responsive charts, I’d love to know; I am somehow still having trouble implementing it:

* http://bl.ocks.org/ndarville/11094667

* https://github.com/ndarville/d3-charts/issues/11

2 comments

This tutorial is not bad at all: Building Responsive Visualizations with D3.js [1]

[1]: https://blog.safaribooksonline.com/2014/02/17/building-respo...

For the basic chart types, I think dimple is a good choice. Here is an example for creating a responsive bar chart http://dimplejs.org/advanced_examples_viewer.html?id=advance...

By default, as fas as my experience goes, charts will fit the containing element, if width and height of the chart are not set explicitly.