score:1

Accepted answer

You can change the colors for your lines by defining a custom scale range or setting a color scheme.

For example, you could manually set the color range like this, using any valid HTML color name or hex code:

color: {
  type: "nominal",
  field: "status_mean"
  scale: {
    range: ["green", "blue"]
  }
}

Alternatively, you can use one of the pre-defined Vega color schemes:

color: {
  type: "nominal",
  field: "status_mean"
  scale: {
    scheme: "accent"
  }
}

A full description of available color options can be found in Vega-Lite's Scale Range documentation.


Related Query

More Query from same tag