View Source Tucan.Scale (tucan v0.4.1)

Utilities for working with Vega-Lite scales.

Scales are functions that transform a domain of data values (numbers, dates, strings, etc.) to a range of visual values (pixels, colors, sizes).

This module exposes various helper functions for setting various scale options like the color scheme, the domain or the scale type.

Summary

Functions

Sets an arbitrary set of options to the given encoding's scale object.

Enables or disables clamping for the given axis.

Sets the domain for the given encoding channel.

Sets the scale for the given encoding channel.

Sets the x-axis domain.

Sets the x axis scale.

Sets the same [x, y] domain for x-axis and y-axis at once.

Sets the y-axis domain.

Sets the y axis scale.

Types

@type color_scheme() :: atom() | [String.t()]

Functions

Link to this function

put_options(vl, encoding, options)

View Source
@spec put_options(vl :: VegaLite.t(), encoding :: atom(), options :: keyword()) ::
  VegaLite.t()

Sets an arbitrary set of options to the given encoding's scale object.

Notice that no validation is performed, any option set will be merged with the existing scale options of the given encoding.

An ArgumentError is raised if the given encoding channel is not defined.

Link to this function

set_clamp(vl, channel, clamp)

View Source
@spec set_clamp(vl :: VegaLite.t(), channel :: atom(), clamp :: boolean()) ::
  VegaLite.t()

Enables or disables clamping for the given axis.

If true, values that exceed the data domain are clamped to either the minimum or maximum range value.

This is applicable only on continuous scales.

Examples

Clamp set to false (left) vs true (right)

left =
  Tucan.scatter(:iris, "petal_width", "petal_length")
  |> Tucan.Scale.set_x_domain(0.5, 2.0)
  |> Tucan.Scale.set_clamp(:x, false)

right =
  Tucan.scatter(:iris, "petal_width", "petal_length")
  |> Tucan.Scale.set_x_domain(0.5, 2.0)
  |> Tucan.Scale.set_clamp(:x, true)

Tucan.hconcat([left, right])
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","hconcat":[{"data":{"url":"https://gist.githubusercontent.com/curran/a08a1080b88344b0c8a7/raw/0e7a9b0a5d22642a06d3d5b9bcbad9890c8ee534/iris.csv"},"encoding":{"x":{"field":"petal_width","scale":{"clamp":false,"domain":[0.5,2.0],"zero":false},"type":"quantitative"},"y":{"field":"petal_length","scale":{"zero":false},"type":"quantitative"}},"mark":{"fillOpacity":1,"type":"point"}},{"data":{"url":"https://gist.githubusercontent.com/curran/a08a1080b88344b0c8a7/raw/0e7a9b0a5d22642a06d3d5b9bcbad9890c8ee534/iris.csv"},"encoding":{"x":{"field":"petal_width","scale":{"clamp":true,"domain":[0.5,2.0],"zero":false},"type":"quantitative"},"y":{"field":"petal_length","scale":{"zero":false},"type":"quantitative"}},"mark":{"fillOpacity":1,"type":"point"}}]}

clamp vs clip

Notice that clamp does not remove the items that exceed the domain. :clip on the other side drops these items.

clamp =
  Tucan.scatter(:iris, "petal_width", "petal_length")
  |> Tucan.Scale.set_x_domain(0.5, 2.0)
  |> Tucan.Scale.set_clamp(:x, true)

clip =
  Tucan.scatter(:iris, "petal_width", "petal_length", clip: true)
  |> Tucan.Scale.set_x_domain(0.5, 2.0)

Tucan.hconcat([clamp, clip])
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","hconcat":[{"data":{"url":"https://gist.githubusercontent.com/curran/a08a1080b88344b0c8a7/raw/0e7a9b0a5d22642a06d3d5b9bcbad9890c8ee534/iris.csv"},"encoding":{"x":{"field":"petal_width","scale":{"clamp":true,"domain":[0.5,2.0],"zero":false},"type":"quantitative"},"y":{"field":"petal_length","scale":{"zero":false},"type":"quantitative"}},"mark":{"fillOpacity":1,"type":"point"}},{"data":{"url":"https://gist.githubusercontent.com/curran/a08a1080b88344b0c8a7/raw/0e7a9b0a5d22642a06d3d5b9bcbad9890c8ee534/iris.csv"},"encoding":{"x":{"field":"petal_width","scale":{"domain":[0.5,2.0],"zero":false},"type":"quantitative"},"y":{"field":"petal_length","scale":{"zero":false},"type":"quantitative"}},"mark":{"clip":true,"fillOpacity":1,"type":"point"}}]}
Link to this function

set_color_scheme(vl, scheme, opts \\ [])

View Source
@spec set_color_scheme(
  vl :: VegaLite.t(),
  scheme :: color_scheme(),
  opts :: keyword()
) :: VegaLite.t()

Sets the color scheme.

You can either set one of the predefined schemes, or an array of colors which will be used as the color range.

The input plot must be a single view with a color encoding defined.

Options

  • :reverse (boolean/0) - If set to true the selected scheme is reversed. Ignored if a range is set. The default value is false.

Supported color schemes

All vega supported schemes are supported by Tucan.

Categorical Schemes

Categorical color schemes can be used to encode discrete data values, each representing a distinct category.

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","columns":2,"concat":[{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"accent"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":accent"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"category10"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":category10"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"category20"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":category20"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"category20b"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":category20b"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"category20c"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":category20c"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"dark2"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":dark2"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"paired"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":paired"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"pastel1"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":pastel1"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"pastel2"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":pastel2"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"set1"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":set1"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"set2"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":set2"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"set3"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":set3"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"tableau10"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":tableau10"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"tableau20"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":tableau20"},"width":300}],"resolve":{"scale":{"color":"independent"}}}

Sequential Single-Hue Schemes

Sequential color schemes can be used to encode quantitative values. These color ramps are designed to encode increasing numeric values.

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","columns":2,"concat":[{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"blues"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":blues"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"tealblues"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":tealblues"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"teals"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":teals"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"greens"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":greens"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"browns"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":browns"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"oranges"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":oranges"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"reds"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":reds"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"purples"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":purples"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"warmgreys"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":warmgreys"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"greys"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":greys"},"width":300}],"resolve":{"scale":{"color":"independent"}}}

Sequential Multi-Hue Schemes

Sequential color schemes can be used to encode quantitative values. These color ramps are designed to encode increasing numeric values, but use additional hues for more color discrimination, which may be useful for visualizations such as heatmaps.

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","columns":2,"concat":[{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"viridis"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":viridis"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"magma"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":magma"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"inferno"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":inferno"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"plasma"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":plasma"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"cividis"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":cividis"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"turbo"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":turbo"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"bluegreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":bluegreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"bluepurple"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":bluepurple"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"goldgreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":goldgreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"goldorange"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":goldorange"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"goldred"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":goldred"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"greenblue"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":greenblue"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"orangered"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":orangered"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"purplebluegreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":purplebluegreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"purpleblue"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":purpleblue"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"purplered"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":purplered"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"redpurple"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":redpurple"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"yellowgreenblue"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":yellowgreenblue"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"yellowgreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":yellowgreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"yelloworangebrown"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":yelloworangebrown"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"yelloworangered"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":yelloworangered"},"width":300}],"resolve":{"scale":{"color":"independent"}}}

Schemes for Dark Backgrounds

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","columns":2,"concat":[{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"darkblue"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":darkblue"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"darkgold"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":darkgold"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"darkgreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":darkgreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"darkmulti"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":darkmulti"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"darkred"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":darkred"},"width":300}],"resolve":{"scale":{"color":"independent"}}}

Schemes for Light Backgrounds

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","columns":2,"concat":[{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"lightgreyred"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":lightgreyred"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"lightgreyteal"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":lightgreyteal"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"lightmulti"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":lightmulti"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"lightorange"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":lightorange"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"lighttealblue"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":lighttealblue"},"width":300}],"resolve":{"scale":{"color":"independent"}}}

Diverging Schemes

Diverging color schemes can be used to encode quantitative values with a meaningful mid-point, such as zero or the average value. Color ramps with different hues diverge with increasing saturation to highlight the values below and above the mid-point.

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","columns":2,"concat":[{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"blueorange"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":blueorange"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"brownbluegreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":brownbluegreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"purplegreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":purplegreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"pinkyellowgreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":pinkyellowgreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"purpleorange"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":purpleorange"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"redblue"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":redblue"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"redgrey"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":redgrey"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"redyellowblue"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":redyellowblue"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"redyellowgreen"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":redyellowgreen"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"spectral"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":spectral"},"width":300}],"resolve":{"scale":{"color":"independent"}}}

Cyclical Schemes

Cyclical color schemes may be used to highlight periodic patterns in continuous data. However, these schemes are not well suited to accurately convey value differences.

{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","columns":2,"concat":[{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"rainbow"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":rainbow"},"width":300},{"data":{"values":[{"x":0},{"x":1},{"x":2},{"x":3},{"x":4},{"x":5},{"x":6},{"x":7},{"x":8},{"x":9},{"x":10},{"x":11},{"x":12},{"x":13},{"x":14},{"x":15},{"x":16},{"x":17},{"x":18},{"x":19},{"x":20},{"x":21},{"x":22},{"x":23},{"x":24},{"x":25},{"x":26},{"x":27},{"x":28},{"x":29},{"x":30},{"x":31},{"x":32},{"x":33},{"x":34},{"x":35},{"x":36},{"x":37},{"x":38},{"x":39},{"x":40},{"x":41},{"x":42},{"x":43},{"x":44},{"x":45},{"x":46},{"x":47},{"x":48},{"x":49},{"x":50},{"x":51},{"x":52},{"x":53},{"x":54},{"x":55},{"x":56},{"x":57},{"x":58},{"x":59},{"x":60},{"x":61},{"x":62},{"x":63},{"x":64},{"x":65},{"x":66},{"x":67},{"x":68},{"x":69},{"x":70},{"x":71},{"x":72},{"x":73},{"x":74},{"x":75},{"x":76},{"x":77},{"x":78},{"x":79},{"x":80},{"x":81},{"x":82},{"x":83},{"x":84},{"x":85},{"x":86},{"x":87},{"x":88},{"x":89},{"x":90},{"x":91},{"x":92},{"x":93},{"x":94},{"x":95},{"x":96},{"x":97},{"x":98},{"x":99},{"x":100}]},"encoding":{"color":{"field":"x","legend":null,"scale":{"extent":[0,100],"scheme":"sinebow"}},"x":{"axis":null,"field":"x"}},"mark":"rect","title":{"anchor":"end","angle":0,"baseline":"line-bottom","font":"Courier New","fontSize":15,"fontWeight":700,"offset":3,"orient":"right","text":":sinebow"},"width":300}],"resolve":{"scale":{"color":"independent"}}}

Examples

Setting a specific color range

Tucan.scatter(:iris, "petal_width", "petal_length", color_by: "species")
|> Tucan.Scale.set_color_scheme(["yellow", "black", "#f234c1"])
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url":"https://gist.githubusercontent.com/curran/a08a1080b88344b0c8a7/raw/0e7a9b0a5d22642a06d3d5b9bcbad9890c8ee534/iris.csv"},"encoding":{"color":{"field":"species","scale":{"range":["yellow","black","#f234c1"]},"type":"nominal"},"x":{"field":"petal_width","scale":{"zero":false},"type":"quantitative"},"y":{"field":"petal_length","scale":{"zero":false},"type":"quantitative"}},"mark":{"fillOpacity":1,"type":"point"}}

You can set any of the predefined color schemes to any plot with a color encoding.

Tucan.scatter(:weather, "date", "temp_max",
  x: [time_unit: :monthdate],
  y: [aggregate: :mean],
  color_by: "temp_max",
  color: [aggregate: :mean, type: :quantitative],
  width: 400
)
|> Tucan.Scale.set_color_scheme(:redyellowblue)
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url":"https://vega.github.io/editor/data/weather.csv"},"encoding":{"color":{"aggregate":"mean","field":"temp_max","scale":{"reverse":false,"scheme":"redyellowblue"},"type":"quantitative"},"x":{"field":"date","scale":{"zero":false},"timeUnit":"monthdate","type":"quantitative"},"y":{"aggregate":"mean","field":"temp_max","scale":{"zero":false},"type":"quantitative"}},"mark":{"fillOpacity":1,"type":"point"},"width":400}

You can reverse it by setting the :reverse option:

Tucan.scatter(:weather, "date", "temp_max",
  x: [time_unit: :monthdate],
  y: [aggregate: :mean],
  color_by: "temp_max",
  color: [aggregate: :mean, type: :quantitative],
  width: 400
)
|> Tucan.Scale.set_color_scheme(:redyellowblue, reverse: true)
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url":"https://vega.github.io/editor/data/weather.csv"},"encoding":{"color":{"aggregate":"mean","field":"temp_max","scale":{"reverse":true,"scheme":"redyellowblue"},"type":"quantitative"},"x":{"field":"date","scale":{"zero":false},"timeUnit":"monthdate","type":"quantitative"},"y":{"aggregate":"mean","field":"temp_max","scale":{"zero":false},"type":"quantitative"}},"mark":{"fillOpacity":1,"type":"point"},"width":400}
Link to this function

set_domain(vl, channel, domain)

View Source
@spec set_domain(vl :: VegaLite.t(), channel :: atom(), domain :: term()) ::
  VegaLite.t()

Sets the domain for the given encoding channel.

domain can be anything Vega-Lite supports and the validity of it depends on the type of the encoding's data.

Notice that no validation is performed.

Link to this function

set_scale(vl, channel, scale, opts \\ [])

View Source
@spec set_scale(
  vl :: VegaLite.t(),
  channel :: atom(),
  scale :: atom(),
  opts :: keyword()
) ::
  VegaLite.t()

Sets the scale for the given encoding channel.

Notice that only continuous scales are supported.

See also set_x_scale/3 and set_y_scale/3 wrappers for setting the scale directly on x and y axes.

Continuous Scales

Continuous scales map a continuous domain (numbers or dates) to a continuous output range (pixel locations, sizes, colors). Supported continuous scale types for quantitative fields are :linear, :log, :pow, :sqrt, and :symlog.

Meanwhile, supported continuous scale types for temporal fields are :time, :utc, and :symlog.

By default, :linear scales are used for quantitative fields and :time scales are used for temporal fields for all encoding channels.

Options

The supported options depend on the selected scale.

:pow scale

  • :exponent (number/0) - The exponent to be used, applicable only for :pow scale.

:log scale

  • :base (number/0) - The logarithm base of the :log scale. If not set defaults to 10.

:symlog scale

  • :constant (number/0) - A constant determining the slope of the symlog function around zero. If not set defaults to 1.

Examples

Applying log scale on x-axis.

Tucan.scatter(:gapminder, "income", "health", width: 400)
|> Tucan.Scale.set_scale(:x, :log)
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url":"https://vega.github.io/vega-datasets/data/gapminder-health-income.csv"},"encoding":{"x":{"field":"income","scale":{"type":"log","zero":false},"type":"quantitative"},"y":{"field":"health","scale":{"zero":false},"type":"quantitative"}},"mark":{"fillOpacity":1,"type":"point"},"width":400}

Applying pow scale on x-axis with arbitrary exponent.

Tucan.scatter(:gapminder, "income", "health", width: 400)
|> Tucan.Scale.set_scale(:x, :pow, exponent: 0.2)
{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url":"https://vega.github.io/vega-datasets/data/gapminder-health-income.csv"},"encoding":{"x":{"field":"income","scale":{"exponent":0.2,"type":"pow","zero":false},"type":"quantitative"},"y":{"field":"health","scale":{"zero":false},"type":"quantitative"}},"mark":{"fillOpacity":1,"type":"point"},"width":400}
Link to this function

set_x_domain(vl, min, max)

View Source
@spec set_x_domain(vl :: VegaLite.t(), min :: number(), max :: number()) ::
  VegaLite.t()

Sets the x-axis domain.

This is a helper wrapper around set_domain/3 for setting the domain of continuous scales.

Link to this function

set_x_scale(vl, scale, opts \\ [])

View Source
@spec set_x_scale(vl :: VegaLite.t(), scale :: atom(), opts :: keyword()) ::
  VegaLite.t()

Sets the x axis scale.

Options

See set_scale/4.

Link to this function

set_xy_domain(vl, min, max)

View Source
@spec set_xy_domain(vl :: VegaLite.t(), min :: number(), max :: number()) ::
  VegaLite.t()

Sets the same [x, y] domain for x-axis and y-axis at once.

Link to this function

set_y_domain(vl, min, max)

View Source
@spec set_y_domain(vl :: VegaLite.t(), min :: number(), max :: number()) ::
  VegaLite.t()

Sets the y-axis domain.

This is a helper wrapper around set_domain/3 for setting the domain of continuous scales.

Link to this function

set_y_scale(vl, scale, opts \\ [])

View Source
@spec set_y_scale(vl :: VegaLite.t(), scale :: atom(), opts :: keyword()) ::
  VegaLite.t()

Sets the y axis scale.

Options

See set_scale/4.