React Gantt - scaleTypeRange

Configures zoom range settings.

Type:

Object

Use the scaleTypeRange.min and scaleTypeRange.max properties to limit zoom in the Gantt chart.

App.js
  • import React from 'react';
  •  
  • import 'devextreme/dist/css/dx.fluent.blue.light.css';
  • import 'devexpress-gantt/dist/dx-gantt.css';
  •  
  • import Gantt, {
  • ScaleTypeRange ,
  • // ...
  • } from 'devextreme-react/gantt';
  •  
  • const App = () => {
  • return (
  • <Gantt ... >
  • <ScaleTypeRange
  • min="days"
  • max="years" />
  • {/* ... */}
  • </Gantt>
  • );
  • };
  •  
  • export default App;
See Also

max

Specifies the maximum zoom level of tasks in the Gantt chart.

Default Value: 'years'

min

Specifies the minimum zoom level of tasks in the Gantt chart.

Default Value: 'minutes'