File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
docs/data/charts/zoom-and-pan Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { ScatterChartPro } from '@mui/x-charts-pro/ScatterChartPro' ;
2
2
import * as React from 'react' ;
3
3
4
- const dataLength = 790 ;
4
+ const dataLength = 800 ;
5
5
const data = Array . from ( { length : dataLength } ) . map ( ( _ , i ) => ( {
6
6
x : i ,
7
7
y : 50 + Math . sin ( i / 5 ) * 25 ,
8
8
} ) ) ;
9
9
const series2Data = Array . from ( { length : dataLength } ) . map ( ( _ , i ) => ( {
10
- x : i + 10 ,
11
- y : 50 + Math . sin ( i / 5 ) * 25 ,
10
+ x : i ,
11
+ y : 50 + Math . sin ( i / 10 ) * 25 ,
12
12
} ) ) ;
13
13
14
14
const xData = data . map ( ( d ) => d . x ) ;
Original file line number Diff line number Diff line change 1
1
import { ScatterChartPro } from '@mui/x-charts-pro/ScatterChartPro' ;
2
2
import * as React from 'react' ;
3
3
4
- const dataLength = 790 ;
4
+ const dataLength = 800 ;
5
5
const data = Array . from ( { length : dataLength } ) . map ( ( _ , i ) => ( {
6
6
x : i ,
7
7
y : 50 + Math . sin ( i / 5 ) * 25 ,
8
8
} ) ) ;
9
9
const series2Data = Array . from ( { length : dataLength } ) . map ( ( _ , i ) => ( {
10
- x : i + 10 ,
11
- y : 50 + Math . sin ( i / 5 ) * 25 ,
10
+ x : i ,
11
+ y : 50 + Math . sin ( i / 10 ) * 25 ,
12
12
} ) ) ;
13
13
14
14
const xData = data . map ( ( d ) => d . x ) ;
You can’t perform that action at this time.
0 commit comments