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

How to customise the individual lablels? #3373

Closed
TrashPanda opened this issue Sep 27, 2016 · 1 comment
Closed

How to customise the individual lablels? #3373

TrashPanda opened this issue Sep 27, 2016 · 1 comment

Comments

@TrashPanda
Copy link

TrashPanda commented Sep 27, 2016

For a simple bar chart like this:

const sampleData =  {
    type: 'bar',
    data: {
        labels: ['1', '2', '3', '4'],
        datasets: [
        //some random data
        ]
    },
}

what if i want the label '1' to appear in red while the rest of the labels to stay black. I have checked the documents and it seems that you can only set font for the whole group. Thanks

@etimberg
Copy link
Member

@TrashPanda that's not currently possible.

Closing as duplicate of #2442

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