()
| 563 | }); |
| 564 | |
| 565 | function coordSysProvider() { |
| 566 | const axesModelMap = findAxisModels(seriesModel); |
| 567 | const xAxisModel = axesModelMap.xAxisModel; |
| 568 | const yAxisModel = axesModelMap.yAxisModel; |
| 569 | xAxis = xAxisModel.axis; |
| 570 | yAxis = yAxisModel.axis; |
| 571 | |
| 572 | const gridModel = xAxisModel.getCoordSysModel(); |
| 573 | |
| 574 | if (__DEV__) { |
| 575 | if (!gridModel) { |
| 576 | throw new Error( |
| 577 | 'Grid "' + retrieve3( |
| 578 | xAxisModel.get('gridIndex'), |
| 579 | xAxisModel.get('gridId'), |
| 580 | 0 |
| 581 | ) + '" not found' |
| 582 | ); |
| 583 | } |
| 584 | if (xAxisModel.getCoordSysModel() !== yAxisModel.getCoordSysModel()) { |
| 585 | throw new Error('xAxis and yAxis must use the same grid'); |
| 586 | } |
| 587 | } |
| 588 | |
| 589 | const grid = gridModel.coordinateSystem as Grid; |
| 590 | |
| 591 | return grid.getCartesian( |
| 592 | xAxisModel.componentIndex, yAxisModel.componentIndex |
| 593 | ); |
| 594 | } |
| 595 | if (xAxis && yAxis) { |
| 596 | associateSeriesWithAxis(xAxis, seriesModel, COORD_SYS_TYPE_CARTESIAN_2D); |
| 597 | associateSeriesWithAxis(yAxis, seriesModel, COORD_SYS_TYPE_CARTESIAN_2D); |
nothing calls this directly
no test coverage detected