TOC : Script API > JavaScript > JavaScript API > Component > Multiplex > Chart > Method >

 

SetChartColor

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > Component > Multiplex > Chart > Method >

 

SetChartColor

 

 

Sets the chart color.

 

 

 

Prototype :

 

void SetChartColor

(

        string ChartColor

)

 

 

 

Arguments :

 

ChartColor

Specify by hexa or decimal RGB value in the form of "#hhhhhh" or "ddd, ddd, ddd".

Multiple colors are separated by semicolon(";").

Transparent color is specified only semicolon with no RGB value.

For example, to make the second color transparent:

"#hhhhhh;;#hhhhhh" or "ddd, ddd, ddd;;ddd, ddd, ddd"

 

 

 

Example :

 

This.SetChartColor("#FF0000"); //Red

 

This.SetChartColor("255, 0, 0"); //Red

 

 

 

Available Events :

 

OnAddToPage,  OnBind,  OnEndBind,  OnInitialize,  OnStartBind