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

fontName ineffective #189

Open
bennypowers opened this issue Apr 13, 2017 · 1 comment
Open

fontName ineffective #189

bennypowers opened this issue Apr 13, 2017 · 1 comment
Labels

Comments

@bennypowers
Copy link

bennypowers commented Apr 13, 2017

      ready: function () {
        this.$.chart.set('options.fontName', "Roboto"); // BUG: this has no effect
        this.$.chart.set('options.fontSize', 25);
        this.$.chart.set('options.timeline', {showRowLabels: false});
        this.$.chart.redraw();
      },

screen shot 2017-04-13 at 11 12 10 am

With fontName and fontSize set, chart still reverts to Arial.

Same behavior when I initialize options as a polymer property on host.

@bennypowers bennypowers changed the title F fontName ineffective Apr 13, 2017
@wesalvaro
Copy link
Member

I think this issue sounds more like a problem with the underlying library?
https://github.com/google/google-visualization-issues/issues
If an option does not work when specified statically in the HTML, then it definitely would be.
e.g. The following should definitely work if there is no bug in the google-visualization library:

<google-chart options='{"fontName": "Roboto"}' ...>

If that works, then your issue might be that no slices are watched on the options object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants