Sets the theme of the Chart. Various predefined themes are bundled along with the library. User can easily switch these themes by changing theme property to the below mentioned options.
var chart = new CanvasJS.Chart("container", { . theme: "light2", //"light1", "dark1", "dark2" . . }); chart.render();
Also See:
Comments 9
Server Side Technologies |
Front End Technologies |
Contact |
|
---|---|---|---|
ASP.NET MVC Charts | JavaScript Charts | FAQs | |
PHP Charts | jQuery Charts | Sales Enquiries | |
Spring MVC Charts | React Charts | Support Forum | |
JSP Charts | Angular Charts | Careers | |
JavaScript StockCharts | |||
Privacy Policy © fenopix
Can we add our own themes, or is there another way to override the default layout of the graphs?
Yes, I second that question, is there a way to define own themes?
Hi,
As of now its still not possible. But we’ll consider for future version.
https://github.com/Pnoexz/CanvasJS-themes/
I’ve made some minor changes that allow you to easily add your own themes. You can find the code here: https://github.com/Pnoexz/CanvasJS-themes/
Love your lib, you guys did a great job. But please add this 3 lines of code and let us add our own themes. The best chart lib is kind of useless if it’s not visual adaptable to the rest of the website.
Hello,
Thanks for your suggestion. We are implementing custom themes in our next version which you can expect within a week. For now you can consider using custom colorSet.
Was this feature ever implemented?
Pauline,
Due to some issues, we had stalled the development of custom-themes. Its still there in our pipeline but no timeline.