FieldColor🔗
Map a field to a color.
Definition🔗
class FieldColor:
"""
Map a field to a color.
"""
# The main color scheme mode.
mode: dashboard.FieldColorModeId
# The fixed color value for fixed or shades color modes.
fixed_color: typing.Optional[str]
# Some visualizations need to know how to assign a series color from by value color schemes.
series_by: typing.Optional[dashboard.FieldColorSeriesByMode]
Methods🔗
to_json🔗
Converts this object into a representation that can easily be encoded to JSON.
from_json🔗
Builds this object from a JSON-decoded dict.