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

How to set up global font-family for whole chart? #75

Open
agiUnderground opened this issue Apr 27, 2018 · 4 comments
Open

How to set up global font-family for whole chart? #75

agiUnderground opened this issue Apr 27, 2018 · 4 comments

Comments

@agiUnderground
Copy link

I wanna set for example font-family: 'Open Sans', sans-serif; but when i applied it to the .amcharts-stock-div it is doesn't worked.

@amcharts
Copy link
Owner

New comment from Zendesk by Anthony Piris on ticket 33795.
(replying here will automatically notify amCharts support agent)

Hi there,

You can set the fontFamily property in your chart config. In a stock chart, this is set in panelsSettings or can be set per panel. Using the cli example in the repo as a reference:

makeOptions(dataProvider) {
    return {
       "type": "serial",
       "fontFamily":  "'Open Sans', sans-serif",
       // ... etc
    }
}

// stock version: 
makeOptions(dataProvider) {
    return {
       "type": "stock",
       "panelsSettings": {
          "fontFamily": "'Open Sans', sans-serif",
          // ...
       },
       // ... etc
    }
}

This needs to be set per chart.

I hope this helps.

Best,

Anthony Piris
amCharts

@agiUnderground
Copy link
Author

Awesome. Works. Thank you!

@amcharts
Copy link
Owner

New comment from Zendesk by Anthony Piris on ticket 33795.
(replying here will automatically notify amCharts support agent)

You're very welcome!

Best,

Anthony Piris
amCharts

@mitou70
Copy link

mitou70 commented May 14, 2019

Hi Anthony, where can I find the supported font families by amcharts 3.xx ?

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

3 participants