Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document x-axis customization #262

Open
anujgoyal opened this issue Jan 21, 2019 · 0 comments
Open

document x-axis customization #262

anujgoyal opened this issue Jan 21, 2019 · 0 comments

Comments

@anujgoyal
Copy link

anujgoyal commented Jan 21, 2019

Description

The x-axis has data labels on both the top and the bottom which looks a bit cluttered.

Expected behavior

It should be easy to customize the x-axis, please create documentation for.

  1. removing/enabling the top label [DONE] coarse.time=TRUE||FALSE
  2. removing/enabling the bottom label without extra whitespace remaining [WORKAROUND] format.labels <- ' '
  3. removing/enabling tick marks for top x-axis
  4. removing/enabling tick marks for bottom x-axis

Minimal, reproducible example

### basic
getSymbols("GM")
chart_Series(GM, subset='2012::2019')

gm

### blanking bottom label, though the whitespace still persists
getSymbols("GM")
ct <- chart_theme()
ct$format.labels <- ' '
chart_Series(GM, subset='2012::2019', theme=ct)

gm_bottom_label

getSymbols("GM")
ct <- chart_theme()
ct$coarse.time <- FALSE ###  removes the label above the x-axis
chart_Series(GM, subset='2012::2019', theme=ct)

gm_top_label_gone

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

No branches or pull requests

1 participant