Interface CSSColor


public interface CSSColor
CSS color specification applied to a specific HTML element on this page.

This is a string matching the syntax as specified in CSS1, and can be formatted in one of the following ways:

  • A keyword color, “white”
  • Six-digit hex notation, “#ffffff”
  • Three-digit hex notation, “#fff”
  • 8-bit decimal notation, “rgb(255, 255, 255)”
  • Percentage notation, “rgb(100%, 100%, 100%)”

Note that when working with FacetCharts, it's required that colors be specified using the six-digit hex format listed above, rather than any of the others, since the Framework needs to perform math on the subfields. Affected properties include FacetChart.dataColors, and affected methods include ColorMapper.getColor()