<templates>
  <t t-name="o-spreadsheet-BarConfigPanel">
    <div>
      <Section class="'pt-0'">
        <Checkbox
          name="'stacked'"
          label="this.stackedLabel"
          value="this.props.definition.stacked"
          onChange.bind="this.onUpdateStacked"
        />
      </Section>
      <ChartDataSourceComponent
        chartId="this.props.chartId"
        definition="this.props.definition"
        updateChart="this.props.updateChart"
        canUpdateChart="this.props.canUpdateChart"
        onErrorMessagesChanged.bind="this.onErrorMessagesChanged"
      />

      <ChartErrorSection t-if="this.errorMessages.length" messages="this.errorMessages"/>
    </div>
  </t>
</templates>
