Configure Custom theme in charts

Hello Team,


How can we add our custom theme in syncfusion chart themes. Is there any control or json file where we can configure this?


3 Replies

DG Durga Gopalakrishnan Syncfusion Team February 10, 2022 02:31 PM UTC

Hi Jayendra, 

Greetings from Syncfusion. 

We don’t have any separate file for customizing the theme or css in chart control. We have applied styles for chart elements using attribute in source level. Please check with the below documentation and API reference link. Using the below chart API, you can change the appearance of chart elements. 

UG : 


Kindly revert us if you have any concerns. 

Regards, 
Durga G


JR Jayendra Rawat replied to Durga Gopalakrishnan February 14, 2022 04:53 AM UTC

Hi Durga Gopalakrishnan,


Is there any way we can change the color combination of any existing theme for example changing the color combination of bootstrap theme.



Regards,

Jayendra Rawat



DG Durga Gopalakrishnan Syncfusion Team February 15, 2022 04:15 PM UTC

Hi Jayendra, 

We suggest you to use palettes property to apply different colors for chart series. We have prepared sample based on your requirement. Please check with below snippet and screenshot. 

app.component.html 
<ejs-chart [palettes]='palette'></ejs-chart> 

app.component.ts 
public palette: String[]=["red", "blue", "green"]; 

 



Kindly revert us if you have any concerns. 

Regards, 
Durga G 


Loader.
Up arrow icon