diff --git a/demo/ts/components/theme-builder/options-config.tsx b/demo/ts/components/theme-builder/options-config.tsx index ad9d7eea2..4c714bead 100644 --- a/demo/ts/components/theme-builder/options-config.tsx +++ b/demo/ts/components/theme-builder/options-config.tsx @@ -8,6 +8,7 @@ import { VictoryHistogram } from "victory-histogram"; import { VictoryLegend } from "victory-legend"; import { VictoryLine } from "victory-line"; import { VictoryPie } from "victory-pie"; +import { VictoryScatter } from "victory-scatter"; type ThemeBuilderFieldConfig = | { @@ -587,7 +588,6 @@ const optionsConfig: ThemeBuilderOptionsConfig = [ }, ], }, - // line { type: "section", title: "Line Chart", @@ -712,6 +712,65 @@ const optionsConfig: ThemeBuilderOptionsConfig = [ }, ], }, + { + type: "section", + title: "Scatter Chart", + content: (props) => ( + + ), + fields: [ + { + type: "section", + label: "Data", + fields: [ + { + type: "colorPicker", + label: "Fill", + default: defaultFill, + path: "scatter.style.data.fill", + }, + { + type: "slider", + label: "Opacity", + min: 0, + max: 1, + step: 0.1, + default: 1, + path: "scatter.style.data.opacity", + }, + { + type: "colorPicker", + label: "Stroke", + default: defaultFill, + path: "scatter.style.data.stroke", + }, + { + type: "slider", + label: "Stroke Width", + min: 0, + max: 5, + unit: "px", + default: 0, + path: "scatter.style.data.strokeWidth", + }, + ], + }, + { + type: "section", + label: "Labels", + fields: getBaseLabelsConfig("scatter.style.labels"), + }, + ], + }, ]; export default optionsConfig;