Skip to content

Add option to disable axes individually#253

Merged
oesmith merged 2 commits intomorrisjs:masterfrom
arachnys:disable-individual-axes
Oct 12, 2013
Merged

Add option to disable axes individually#253
oesmith merged 2 commits intomorrisjs:masterfrom
arachnys:disable-individual-axes

Conversation

@omarkhan
Copy link
Copy Markdown
Contributor

I need to hide only the y axis labels. I tried setting yLabelFormat to a function that returns the empty string, but that broke the number displayed in the hover popup.

This patch extends the axes option to allow true, false, 'both', 'x', or 'y'

@tiraeth
Copy link
Copy Markdown
Contributor

tiraeth commented Jun 23, 2013

I would go with different values for axes instead of separate options, like:

  • true or both for both enabled
  • false for both disabled
  • x for X enabled, Y disabled
  • y for X disabled, Y enabled

The advantage of the proposed solution is that we're not introducing BCB (you don't do so either but this don't add additional options).

@omarkhan
Copy link
Copy Markdown
Contributor Author

@tiraeth done in d142048

@oesmith
Copy link
Copy Markdown
Contributor

oesmith commented Oct 12, 2013

Awesome work again! If you could do another PR for docs, that would be amazing 👍

Thanks!

@oesmith oesmith merged commit d142048 into morrisjs:master Oct 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants