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 title customization #270

Open
anujgoyal opened this issue Jun 16, 2019 · 1 comment
Open

document title customization #270

anujgoyal opened this issue Jun 16, 2019 · 1 comment

Comments

@anujgoyal
Copy link

Description

While chart_Series(symbol, name="title") works, but it is currently difficult to set the fontsize/fontcolor of that title.

Expected behavior

chart_theme() should be modified to allow for title customization. If the title is not part of chart_theme(), then chart_Series() should be modified.

Minimal, reproducible example

# option 1
mytheme <- chart_theme(title.size=14, title.color="#ff0000")
chart_Series(IBM, name="IBM: IBM", theme=mytheme)

# option 2
chart_Series(IBM, name="IBM: IBM", name.size=14, name.color="#ff0000")
@helgasoft
Copy link

There is a workaround

# option 3
chart_Series(IBM, name=NULL);  title('IBM', font.main=3, col.main="#ff0000", line=2.5)

Playing with line gives you the desired vertical position.

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

2 participants