cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Pie Chart Colors from Database

vmaik
7 - Data Storage
7 - Data Storage

Hi, does anyone knows how to get color for category from Database? For every category our customers has their own colours, so I would like to display them in my Pie Chart component. Thanks.

1 REPLY 1

ronenavidor
Sisense Team Member
Sisense Team Member

Hi,

There are several ways you can achieve this, we will need a better understanding of the use case to recommend the best option. At a very high level this can be done using Javascript, see link below to give you an idea

https://support.sisense.com/kb/en/article/change-color-for-specific-category-in-pie-chart  

If you are looking for a more generic option where you read values from the database, then you would need to create a custom plugin , https://support.sisense.com/kb/en/article/create-a-new-plugin , utilize the ProcessResult callback to read the colors and set the color object accordingly. 

If you need help with this , please reach out to you Customer Success Manager , who can set you up with our Professional Services for consulation.

Thanks,

Ronen