StyleCode Property: color

color

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

Applies toTypeDefault
barchart > series
histogram > series
linechart > series
piechart > series > value
plot > series
scatter > series
scatter > series > value
color,gradientgradient

Examples

// Example: barchart > series
show barchart "My Chart" a1b6 with
  sum(Quantity) { color: gradient }
  group by Category

// Example: histogram > series
show histogram "My Histogram" a1 tomato with
  PO.Delay { color: gradient }

// Example: linechart > series
show linechart "My Chart" a1b6 with
  Day.StockOnHand { color: gradient }
  Day.StockOnOrder

// Example: piechart > series > value
show piechart "My Chart" a1b6 with
  sum(Quantity) { value { color: gradient } }
  group by Category

// Example: plot > series
show plot "My Plot" a1d4 with
  Sales.Quantity { color: gradient }
  Sales.Discount

// Example: scatter > series
show scatter "My Plot" a1d4 with
  Sales.Quantity { color: gradient }
  Sales.Discount

// Example: scatter > series > value
show scatter "My Plot" a1d4 with
  Sales.Quantity { value { color: gradient } }
  Sales.Discount

Details

For piechart and scatter, the color property can specified at the value level (as opposed to the series level), and is expected to be a vector, providing a different value for each piechart slice and each scatterplot point.