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

Customise individual Axis Labels #243

Closed
akau40 opened this issue Nov 3, 2017 · 1 comment
Closed

Customise individual Axis Labels #243

akau40 opened this issue Nov 3, 2017 · 1 comment

Comments

@akau40
Copy link

akau40 commented Nov 3, 2017

Is it possible to customise individual Axis labels in vue-chart. Something like this:

fonstStyle:function (value, index, values) {
                                        var data= this.data[index];
                                        console.log(data.groupdescription);
                                       return data.groupdescription.length > 0 ? "normal" : "bold";      
}

if I just do fontStyle: "bold" , it works fine but applies to all labels
or apply similar logic to set individual colors for labels.

@apertureless
Copy link
Owner

Well if it's possible with Chart.js it should be possible with vue-chartjs. ;)
There are some scriptable options however I am not sure if this applies to fontStyle.

However I guess you better ask in the Chart.js repo, as it's more relevant there.

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

No branches or pull requests

2 participants