mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Adding chart-id to chartrenderer (#6832)
* Adding chart-id to chatrenderer * Update ChartRenderer.jsx
This commit is contained in:
parent
044f660f48
commit
3f47c61dff
@ -177,6 +177,7 @@ class ChartRenderer extends React.Component {
|
|||||||
chartAlert,
|
chartAlert,
|
||||||
chartStatus,
|
chartStatus,
|
||||||
vizType,
|
vizType,
|
||||||
|
chartId,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const isLoading = chartStatus === 'loading';
|
const isLoading = chartStatus === 'loading';
|
||||||
@ -188,6 +189,7 @@ class ChartRenderer extends React.Component {
|
|||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{this.renderTooltip()}
|
{this.renderTooltip()}
|
||||||
<SuperChart
|
<SuperChart
|
||||||
|
id={`chart-id-${chartId}`}
|
||||||
className={`${snakeCase(vizType)}`}
|
className={`${snakeCase(vizType)}`}
|
||||||
chartType={vizType}
|
chartType={vizType}
|
||||||
chartProps={skipChartRendering ? null : this.prepareChartProps()}
|
chartProps={skipChartRendering ? null : this.prepareChartProps()}
|
||||||
|
Loading…
Reference in New Issue
Block a user