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

Cannot modify styling using options #60

Closed
JonathanTroyer opened this issue Mar 13, 2017 · 1 comment
Closed

Cannot modify styling using options #60

JonathanTroyer opened this issue Mar 13, 2017 · 1 comment

Comments

@JonathanTroyer
Copy link

Expected Behavior

When passing option data such as

options: { responsive: true, maintainAspectRatio: false, legend: { display: true, labels: { fontSize: '1em', fontFamily: "'Roboto' sans-serif", fontColor: "#000" } }

in the options parameter of renderChart() for those styling options to be honored.

Actual Behavior

All styling follows the default styling, which is not configurable (or at least I couldn't find how to do so).
While in the area, being able to modify the global style would be fantastic.

Environment

  • vue.js version: 2.2.2
  • vue-chart.js version: 2.5.1
  • npm version: 3.10.10
  • yarn version: 0.21.3
@apertureless
Copy link
Owner

apertureless commented Mar 14, 2017

@JonathanTroyer
Well, you can modify the styling options.
But your options object is simply wrong. Please check the Chart.js docs

fontSize for example accepts only a number. You can't pass '1em' to it.
If you pass a valid options object to it, it will work 😄

img

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