streamgraph icon indicating copy to clipboard operation
streamgraph copied to clipboard

Can we change the font size of the axis?

Open epioneMW opened this issue 6 years ago • 3 comments

epioneMW avatar Mar 02 '18 08:03 epioneMW

I'm also looking for guidance on this. I looked in e.g. sg_axis_x() source and it wasn't clear...

This is an awesome package, thanks!

olyerickson avatar Jun 14 '18 13:06 olyerickson

Note, a blogger had this same problem, noted here: https://ouzor.github.io/blog/2015/08/31/twitter-streamgraph.html

olyerickson avatar Jun 14 '18 13:06 olyerickson

Use css for this. Like so:

svg text {
  font-family: inherit;
  fill: lightgray;
  font-size: 1.1em;
}

there are also speciffic selectors for each axis. Inspect the axis text element to find out. It as something like: x.axis text { etc.. }

elfatherbrown avatar Mar 12 '21 19:03 elfatherbrown