import { ConfigPanelSchema } from '@duckyjs/ducky';

const LineChartConfigPanelSchema: ConfigPanelSchema = [
  {
    type: 'input',
    property: 'xField',
    name: 'xField',
    initialValue: '',
  },
  {
    type: 'input',
    property: 'yField',
    name: 'yField',
    initialValue: '',
  },
  {
    type: 'collapse',
    property: 'point',
    name: 'point',
    children: [
      {
        type: 'input-number',
        property: 'size',
        name: 'size',
        initialValue: 1,
      },
      {
        type: 'select',
        property: 'shape',
        name: 'shape',
        initialValue: 'point',
        options: [
          { label: 'point', value: 'point' },
          { label: 'line', value: 'line' },
          { label: 'diamond', value: 'diamond' },
        ],
      },
    ],
  },
];

export default LineChartConfigPanelSchema;
