| | |
| | | _sync = false |
| | | } |
| | | |
| | | let height = config.plot.height || 400 |
| | | if (config.plot.title || config.search.length > 0) { |
| | | _config.plot.height = _config.plot.height - 80 |
| | | _config.plot.height = height - 70 |
| | | } else { |
| | | _config.plot.height = _config.plot.height - 30 |
| | | _config.plot.height = height - 25 |
| | | } |
| | | |
| | | _config.style.height = config.plot.height |
| | | _config.style.height = height |
| | | |
| | | this.setState({ |
| | | config: _config, |
| | |
| | | } |
| | | |
| | | /** |
| | | * @description 折线图渲染 |
| | | * @description 散点图渲染 |
| | | */ |
| | | scatterrender = () => { |
| | | const { plot, data, chartId } = this.state |
| | |
| | | } |
| | | })} |
| | | </div> |
| | | <div className={'canvas' + (empty ? ' empty' : '')} id={this.state.chartId}></div> |
| | | <div className={'canvas' + (empty ? ' empty' : '')} style={{height: config.plot.height + 25}} id={this.state.chartId}></div> |
| | | </div> |
| | | {empty ? <Empty description={false}/> : null} |
| | | </div> |