-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Options being ignored #160
Comments
What was the previous version you were using? |
I am using the latest version now yes. Sorry what i about the previous version is in-accurate. This is happening when using the reactiveData mixins. If i remove it the legend is hidden. |
Oh okay. Right now I don't really know how to "clean" this up, because I don't know which arguments get passed from the user. So if you don't set your chart options in a local data attribute called So a workaround for you would be to declare options in your data model. import {
Bar,
mixins
} from 'vue-chartjs'
import Constants from '../../Constants';
const { reactiveData } = mixins;
export default Bar.extend({
mixins: [reactiveData],
data() {
return {
chartData: null,
options: Constants.chartOptions
}
},
watch: {
// watching my external data-set and updates this.chartData
},
mounted() {
this.renderChart(this.chartData, this.options);
}
}); This should fix it. |
Ah yer got it, thats working, thanks. |
There seems to be an issue with disabling the legend with the latest version. This was working before for me.
Chart rendered:
Constants.js file
.vue file
The text was updated successfully, but these errors were encountered: