React Chart - margin

Generates space around the widget.

Type:

Object

WidgetMargin DevExtreme ChartJS

App.vue
  • <template>
  • <DxChart ... >
  • <DxMargin
  • :top="20"
  • :bottom="20"
  • :left="30"
  • :right="30"
  • />
  • </DxChart>
  • </template>
  •  
  • <script>
  • import 'devextreme/dist/css/dx.common.css';
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import DxChart, {
  • DxMargin
  • } from 'devextreme-vue/chart';
  •  
  • export default {
  • components: {
  • DxChart,
  • DxMargin
  • },
  • // ...
  • }
  • </script>

bottom

Specifies the bottom margin of the widget in pixels.

Type:

Number

Default Value: 0

left

Specifies the left margin of the widget in pixels.

Type:

Number

Default Value: 0

right

Specifies the right margin of the widget in pixels.

Type:

Number

Default Value: 0

top

Specifies the top margin of the widget in pixels.

Type:

Number

Default Value: 0