This is a migrated thread and some comments may be shown as answers.

Styling chart text: category, series and axis labels; legend; and title

1 Answer 89 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Lyndsy Simon
Top achievements
Rank 2
Lyndsy Simon asked on 23 Feb 2012, 12:14 AM
Is there a way to set the color of all text on a chart?

Most default to black, but I need them to all be #777. There doesn't appear to be a color attribute for the text in the configuration...

1 Answer, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 26 Feb 2012, 05:38 PM
Hello Lyndsy Simon,

Thank you for contactin us.

You need to set:
title: {
    color: "$777"
},
legend: {
    labels: {
        color: "$777"
    }
},
seriesDefaults: {
    labels: {
        color: WHITE
    }
},
axisDefaults: {
    labels: {
        color: "$777"
    },
    title: {
        color: "$777"
    }
}

Greetings,
Hristo Germanov
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Lyndsy Simon
Top achievements
Rank 2
Answers by
Hristo Germanov
Telerik team
Share this question
or