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

Bind series color to color code stored in database

1 Answer 190 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 22 Apr 2015, 09:50 AM

Hi everyone, in my project I need to create a Graph with custom color for each series. I need to bind the series color to color codes stored in my database.

How can i do this ?

 

Best regards,

 

Julien

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 22 Apr 2015, 03:09 PM
Hello Julien,

The mechanism setting Graph series colors uses color palettes, so you will need to define a custom color palette. Since the color codes are stored in a database you will have to create the custom color palette and add it to the Graph item programmatically in the report definition.
More information on the topic can be found in the Formatting Series Colors section of the Formatting Graph Series help article.

Regards,
Nasko
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Julien
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or