css - dc.bar-chart margin and axis label size adjustment -


i found yaxis label big shown--it truncated left border.

i tried increasing left margin, no success. seems label text left-aligned. increasing margin gets label further away ticks text.

please see attached screenshots. 1 wider gap margin.left=70. other 1 margin.left=40. no matter case, 'expenditures' seems truncated on left side.

is there anywhere in dc.css can change configuration? thank you!!

you can adjust axis labels placed relative edge using second parameter when call .xaxislabel() , .yaxislabel() methods. sets "padding" (actually offset left/bottom).

coordinategridmixin.xaxislabel docs

coordinategridmixin.yaxislabel docs

it's confusing text size gets set through stylesheet positioning can't be. i'm not sure if there's way around this, though


Popular posts from this blog