Sets the colorSet of Navigator. Color Set is an array of colors that is used to set the color of individual dataSeries in a sequence. Various predefined Color Sets are bundled along with the library. You can either choose from the pre-defined Color Sets or define your own Color Set as shown in this tutorial.
CanvasJS provides a way to add custom colorSet to the library. Color Sets added in this manner are globally available and can be used by any chart or navigator in the page.
Syntax: CanvasJS.addColorSet(colorSetName, colorSetArray)
Once a Color Set is added, you can refer to it by name – similar to pre-defined ones. Below is the syntax showing how to use it.
var stockChart = new CanvasJS.StockChart("container", { . . navigator: { . . colorSet: "customColorSet1" . . } . . }); stockChart.render();
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