Chart.js: Is there any option to hide chart legend on vue.js?

Created on 28 May 2017  ·  2Comments  ·  Source: chartjs/Chart.js

Expected Behavior


Current Behavior


Possible Solution


Steps to Reproduce (for bugs)



1.
2.
3.
4.

Context


Environment

  • Chart.js version:
  • Browser name and version:
  • Link to your project:
support

Most helpful comment

@aziz1117 I'm not sure how the Vue wrapper passes properties but if you set the legend.display option to false the legend will be hidden

options: {
  legend: {
    display: false
  }
}

All 2 comments

@aziz1117 I'm not sure how the Vue wrapper passes properties but if you set the legend.display option to false the legend will be hidden

options: {
  legend: {
    display: false
  }
}

Confirmed that the above code works.

Was this page helpful?
0 / 5 - 0 ratings