Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update attribute, description to remove hsv
  • Loading branch information
camdecoster committed Aug 29, 2025
commit 5964bee7c145c245535031da052929c4b5d5f7b1
2 changes: 1 addition & 1 deletion src/components/colorscale/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ module.exports = function colorScaleAttrs(context, opts) {
'Sets the colorscale.' + effectDesc,
'The colorscale must be an array containing',
'arrays mapping a normalized value to an',
'rgb, rgba, hex, hsl, hsv, or named color string.',
'rgb, rgba, hex, hsl, or named color string.',
'At minimum, a mapping for the lowest (0) and highest (1)',
'values are required. For example,',
'`[[0, \'rgb(0,0,255)\'], [1, \'rgb(255,0,0)\']]`.',
Expand Down
7 changes: 3 additions & 4 deletions src/lib/coerce.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,10 @@ exports.valObjectMeta = {
description: [
'A string describing color.',
'Supported formats:',
'- hex (e.g. \'#d3d3d3\')',
'- rgb (e.g. \'rgb(255, 0, 0)\')',
'- rgba (e.g. \'rgb(255, 0, 0, 0.5)\')',
"- hex (e.g. '#d3d3d3', '#d3d3d3aa)",
"- rgb (e.g. 'rgb(255, 0, 0)', 'rgb(255 0 0)')",
"- rgba (e.g. 'rgba(255, 0, 0, 0.5)', 'rgba(255 0 0 / 0.5)')",
'- hsl (e.g. \'hsl(0, 100%, 50%)\')',
'- hsv (e.g. \'hsv(0, 100%, 100%)\')',
'- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)'
].join(' '),
requiredOpts: [],
Expand Down