How to make the chart use 100% of available space

9 views
Skip to first unread message

chandras...@gmail.com

unread,
May 12, 2021, 11:55:12 AM5/12/21
to d3plus

My example is here https://jsfiddle.net/chandrak_1972/q6utc08e/11/

I have a simple bar chart. I have removed all the axis etc. because my visualization needs the bar chart alone to be placed inside a table cell.

But even after this the chart shows the white space - it keeps the axis space blank (i feel d3plus hides the axis and doesn't make the chart expand in to that space). I may be wrong. is there any way i can make the chart occupy the full available space without white spaces.

Any help in this regard is greatly appreciated.

ps: I saw the documentation related to padding. i am not sure how to use the same. pl help me.

Rgds,
Chandra

Reply all
Reply to author
Forward
0 new messages