StyleCode Property: color

🚧 Work in progress — This documents the redesigned dashboard layout system, which is still under active development and subject to change. It is not compatible with the older v1 dashboard tile system.

color

Specifies the color of a series for the plot color pipeline.

Applies to Type Default
barchart > series
barchart > series > value
chart > series
chart > series
chart > series > value
piechart > series > value
chart
chart
chart
chart
chart
chart
chart
color, gradient gradient

Examples

// Example: barchart > series
table Items = with
  [| as SKU, as Category, as Quantity |]
  [| "AAA", "CAT_1", 10 |]
  [| "BBB", "CAT_2", 20 |]
  [| "CCC", "CAT_1", 30 |]

show barchart "My BarChart" { 1..4, 1..6 } with
  sum(Items.Quantity) { color: "#FF6347" }
  group by Items.Category

// Example: barchart > series > value
table Items = with
  [| as SKU, as Category, as Quantity |]
  [| "AAA", "CAT_1", 10 |]
  [| "BBB", "CAT_2", 20 |]
  [| "CCC", "CAT_1", 30 |]

show barchart "My BarChart" { 1..4, 1..6 } with
  sum(Items.Quantity) { value { color: "#FF6347" } }
  group by Items.Category

// Example: piechart > series > value
table Sales = with
  [| as Quantity, as Category |]
  [| 10, "A" |]
  [| 1, "B" |]
  [| 5, "B" |]
  [| 4, "A" |]
  [| 12, "C" |]

show piechart "My Pie Chart" { 1..4, 1..6 } with
  sum(Sales.Quantity) { value { color: "#FF6347" } }
  group by Sales.Category

User Contributed Notes
0 notes + add a note