SetPalette
  • 2 Minutes to read
  • Dark
    Light
  • PDF

SetPalette

  • Dark
    Light
  • PDF

Article summary

Sets the charting color palette to be used within a project.

KeyValue(s)Description
method"SetPalette"Sets the charting color palette to be used within a project.
palette{}"palette":{}Palette object, containing palette elements
name"PaletteName"Palette element - name of palette
colorARGB[]

[

"#f051FB2",

"#ff2fE8FFF",

"...",

],


Palette element. 

Comma separated list of colors in Alpha RGB format. 

“#AABBBBBB” 

Where AA denotes opacity and BBBBBB is RGB Hex code 

Minimum number of colors is 8

Maximum is TODO

The number of colors specified for colorARGB must match the number specified for colorRGBA. 
colorRGBA[]

"colorRGBA": [

"#051FB2ff",

"#2E8FFFff",

"...",

],


Palette element.
Comma separated list of colors in RGB Alpha format. 

“#BBBBBBAA” 

Where BBBBBB is RGB Hex code and AA denotes opacity. 

Minimum number of colors is 8

Maximum is TODO

The number of colors specified for colorRGBA must match the number specified for colorARGB.
systemWidetrue/falseIf true, the palette will be used across all projects
project"MyProjectName"Project name.  Must match the project that is being configured.

Changing the Palette

To change the palette for a project to a custom palette, run the SetPalette method from Script Editor:

{
"method": "SetPalette",
"description": "My palette",
"palette": {
"name": "My Palette",
"colorARGB": [
"#f051FB2",
"#ff2fE8FFF",
"#ff1Ed2dd",
"#ff1fb864",
"#ffc500",
"#ff7c1f",
"#ffed3434",
"#ffe63cb5",
"#ffa530f2"
],
"colorRGBA": [
"#051FB2ff",
"#2E8FFFff",
"#1Ed2ddff",
"#1fb864ff",
"#ffc500ff",
"#ff7c1fff",
"#ed3434ff",
"#e63cb5ff",
"#a530f2ff"
],
"systemWide": true
},
"project": "RegressionDB"
}


Sample Palettes:

Palette 1 (6)

{
"method": "SetPalette",
“description”:” Palette 1 (6)”
"palette": {
"name": "My Palette",
"colorARGB": [
"#ffDDDDDD",
"#ff949697",
"#ffFABF73",
"#ffF5AC69", 
"#ffEE847E",
"#ffCACACA"
],
"colorRGBA": [
"#DDDDDDff",
"#949697ff",
"#FABF73ff",
"#F5AC69ff", 
"#EE847Eff",
"#CACACAff"
],
"systemWide": true
},
"project": "RegressionDB"
}


Palette 2 (10)

{
"method": "SetPalette",
“description”:” Palette 2 (10)”
"palette": {
"name": "My Palette",
"colorARGB": [
"#ffEDB131",
"#ffF1612C",
"#ffC41321",
"#ff742953", 
"#ff1D455C",
"#ff308879",
"#ff679D46",
"#ff000000",
"#ff949599",
"#ff533A26"
],
"colorRGBA": [
"#EDB131ff",
"#F1612Cff",
"#C41321ff",
"#742953ff", 
"#1D455Cff",
"#308879ff",
"#679D46ff",
"#000000ff",
"#949599ff",
"#533A26ff"
],
"systemWide": true
},
"project": "RegressionDB"
}


Palette 3 (12 - Pastel)

{
"method": "SetPalette",
"description":  "Palette 3 (12) Pastel",
"palette": {
"name": "My Palette",
"colorARGB": [
"#ff8FD3C8",
"#ffFEFEB8",
"#ffBEBCD9",
"#ffFA7F73", 
"#ff81B2D0",
"#ffFBB369",
"#ffB4DD73",
"#ffFCCDE4",
"#ffD9D9D9",
"#ffBB81BA",
"#ffCDE9C6",
"#ffFFEB7A"
],
"colorRGBA": [
"#8FD3C8ff",
"#FEFEB8ff",
"#BEBCD9ff",
"#FA7F73ff", 
"#81B2D0ff",
"#FBB369ff",
"#B4DD73ff",
"#FCCDE4ff",
"#D9D9D9ff",
"#BB81BAff",
"#CDE9C6ff",
"#FFEB7Aff"
],"systemWide": true
},
"project": "RegressionDB"
}


Palette 4 (12) Muted

{
"method": "SetPalette",
"description":  "Palette 4 (12) Muted",
"palette": {
"name": "My Palette",
"colorARGB": [
"#ffCEBD63",
"#ffD9DDED",
"#ff605997",
"#ffC57152"
"#ff4F8CC1", 
"#ffC65394",
"#ffAA8667",
"#ffFFFEC3",
"#ff81B2D0",
"#ff9369BA",
"#ffF6B6D1",
"#ff8B564C",
],
"colorRGBA": [
"#CEBD63ff",
"#D9DDEDff",
"#605997ff",
"#C57152ff"
"#4F8CC1ff", 
"#C65394ff",
"#AA8667ff",
"#FFFEC3ff",
"#81B2D0ff",
"#9369BAff",
"#F6B6D1ff",
"#8B564Cff",
],"systemWide": true
},
"project": "RegressionDB"
}


Palette 5 (15)

{
"method": "SetPalette",
"description": "Palette 5 (15)",
"palette": {
"name": "My Palette",
"colorARGB": [
"#ff165B73",
"#ff10868D",
"#ff88C6D9",
"#ffC42E35", 
"#ffE39426",
"#ffF0C07B",
"#ff94204C",
"#ffDF8876",
"#ffE7A5B5",
"#ff5C1E61",
"#ff7B2B7E",
"#ffC4A6C9",
"#ff242321",
"#ff505050",
"#ffC8C8C8"
],
"colorRGBA": [
"#165B73ff",
"#10868Dff",
"#88C6D9ff",
"#C42E35ff", 
"#E39426ff",
"#F0C07Bff",
"#94204Cff",
"#DF8876ff",
"#E7A5B5ff",
"#5C1E61ff",
"#7B2B7Eff",
"#C4A6C9ff",
"#242321ff",
"#505050ff",
"#C8C8C8ff"
],"systemWide": true
},
"project": "RegressionDB"
}


Palette 6 (16)

{
"method": "SetPalette",
"description": "Palette 6 (16)",
"palette": {
"name": "My Palette",
"colorARGB": [
"#ff6832C0",
"#ff1795E4",
"#ff065D5D",
"#ff9E1952", 
"#ffF34A56",
"#ff560201",
"#ff1F7F3D",
"#ff003299",
"#ffEC548A",
"#ffB2851F",
"#ff109D9A",
"#ff022848",
"#ff89370B",
"#ffA473FA",
"#ffFEFEB8",
"#ffD9D9D9"
],
"colorRGBA": [
"#6832C0ff",
"#1795E4ff",
"#065D5Dff",
"#9E1952ff", 
"#F34A56ff",
"#560201ff",
"#1F7F3Dff",
"#003299ff",
"#EC548Aff",
"#B2851Fff",
"#109D9Aff",
"#022848ff",
"#89370Bff",
"#A473FAff",
"#FEFEB8ff",
"#D9D9D9ff"
],"systemWide": true
},
"project": "RegressionDB"
}

Palette 7 (25)

{
"method": "SetPalette",
"description": "Palette 7 (25)",
"palette": {
"name": "My Palette",
"colorARGB": [
"#ff5D8B9A",
"#ff7AE8DC",
"#ff274E54",
"#ff8BD1F7", 
"#ff30437C",
"#ffD681E9",
"#ff867CC1",
"#ffE7CBED",
"#ff71379B",
"#ffBFDF96",
"#ff336929",
"#ff8EEB78",
"#ff8B9565",
"#ff491D09",
"#ffF2A75A",
"#ffBE3324",
"#ff922846",
"#ffA07967",
"#ffE67A9E", 
"#ffEA3785",
"#ff414B1D",
"#ffF0D257",
"#ff3F4BF0",
"#ffE54BEF",
"#ffD9D9D9"
],
"colorRGBA": [
"#5D8B9Aff”,
"#7AE8DCff”,
"#274E54ff”,
"#8BD1F7ff”, 
"#30437Cff”,
"#D681E9ff”,
"#867CC1ff”,
"#E7CBEDff”,
"#71379Bff”,
"#BFDF96ff”,
"#336929ff”,
"#8EEB78ff”,
"#8B9565ff”,
"#491D09ff”,
"#F2A75Aff”,
"#BE3324ff”,
"#922846ff”,
"#A07967ff”,
"#E67A9Eff”, 
"#EA3785ff”,
"#414B1Dff”,
"#F0D257ff”,
"#3F4BF0ff”,
"#E54BEFff”,
"#D9D9D9ff"
],"systemWide": true
},
"project": "RegressionDB"
}





Was this article helpful?

What's Next