mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -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,
|
||||
chartStatus,
|
||||
vizType,
|
||||
chartId,
|
||||
} = this.props;
|
||||
|
||||
const isLoading = chartStatus === 'loading';
|
||||
@ -188,6 +189,7 @@ class ChartRenderer extends React.Component {
|
||||
<React.Fragment>
|
||||
{this.renderTooltip()}
|
||||
<SuperChart
|
||||
id={`chart-id-${chartId}`}
|
||||
className={`${snakeCase(vizType)}`}
|
||||
chartType={vizType}
|
||||
chartProps={skipChartRendering ? null : this.prepareChartProps()}
|
||||
|
Loading…
Reference in New Issue
Block a user