cartodb/lib/formats/legends/definitions/custom_choropleth.json

29 lines
630 B
JSON
Raw Normal View History

2020-06-15 10:58:47 +08:00
{
"type": "object",
"required": ["colors"],
"additionalProperties": false,
"properties": {
"prefix": { "type": "string" },
"suffix": { "type": "string" },
"left_label": { "type": "string" },
"right_label": { "type": "string" },
"colors": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"color"
],
"additionalProperties": false,
"properties": {
"color": {
"type": "string",
"pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$"
}
}
}
}
}
}