I'd like to submit a PR to inherit the current font size by evaluating the computed value of 1em from the container (chart.bindto) element.
It's not 100% working yet (So far I have the correct font size being correctly applied to the legend, axis ticks and labels and the labels on bars / arcs ... and the legend tile size. It's also adjusting the legend and axis label positioning) but given your instructions about raising an issue before submitting a PR I thought I'd check before investing any more time in it.
There are some more things I need to do with positioning but the main remaining thing I'd like to do is adjust the axis ticks so the tick labels don't overrun. At the moment this has to be done by specifying the tick values in the chart config.
I'd like to submit a PR to inherit the current font size by evaluating the computed value of 1em from the container (chart.bindto) element.
It's not 100% working yet (So far I have the correct font size being correctly applied to the legend, axis ticks and labels and the labels on bars / arcs ... and the legend tile size. It's also adjusting the legend and axis label positioning) but given your instructions about raising an issue before submitting a PR I thought I'd check before investing any more time in it.
There are some more things I need to do with positioning but the main remaining thing I'd like to do is adjust the axis ticks so the tick labels don't overrun. At the moment this has to be done by specifying the tick values in the chart config.
Let me know what you think.
Thanks. Dan