semiotic icon indicating copy to clipboard operation
semiotic copied to clipboard

Documentation does not provide a way to hide axes entirely

Open pashpashpash opened this issue 6 years ago • 3 comments

I want my graph to take up the maximum possible space, without axes -- currently the documentation does not mention how to do this.

pashpashpash avatar Aug 12 '19 15:08 pashpashpash

Axes are optional. You don't have to send anything to the axes prop and then it will not render them. Margins try to be smart, so if you pass axes or a title or something, it will try to give the proper amount of space, but you can override it by sending a specific margin. If you send margin={0} that will give you the full space to the chart.

emeeks avatar Aug 15 '19 04:08 emeeks

I guess an example or two on the docs would be useful for completeness? If you've been using Semiotic for a while then it's obvious, as @emeeks mentioned, that you can simply omit the axes to hide them.

But maybe it would be helpful for people new to Semiotic to see an example and it specifically mentioned that omitting axes is all you need to do.

dgwyer avatar Aug 19 '19 08:08 dgwyer

That makes a lot of sense @dgwyer there should be an explicit mention on the axes docs.

emeeks avatar Aug 27 '19 03:08 emeeks