Sign in to follow this  
abdfahim

Randomize Palette Color

Recommended Posts

Hi,

 

If I give particular number of palette colors like below, it just repeats through the set of color. Can we please have the option so that it follows the default list after my customized set is finished (e.g. first 2 lines will be as per my defined color, rests will follow default colors).

paletteColors= '#0075c2,#1aaf5d'

Share this post


Link to post
Share on other sites

Hi,

 

Yes, you can define custom colors followed by colors mentioned in the palleteColors attribute.

<chart caption='Monthly' xAxisName='Month' yAxisName='Revenue' numberPrefix='$' showValues='0' paletteColors= '#0075c2,#1aaf5d'>
   <set label='Jan' value='420000' color='00008B'/>
   <set label='Feb' value='910000' color='EEBBCC'/>
   <set label='Mar' value='720000' />
   <set label='Apr' value='550000' />
   <set label='May' value='810000' />
  <set label='June' value='810000' />  
</chart>

Hope this helps.

Capture.PNG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this