superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kri...@apache.org
Subject [incubator-superset] branch master updated: Adding chart-id to chartrenderer (#6832)
Date Tue, 12 Feb 2019 22:41:31 GMT
This is an automated email from the ASF dual-hosted git repository.

kristw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 3f47c61  Adding chart-id to chartrenderer (#6832)
3f47c61 is described below

commit 3f47c61dffc60503031e0dd8fd24415d6f1f1d6a
Author: Karri Niemelä <kakoni@gmail.com>
AuthorDate: Wed Feb 13 00:41:22 2019 +0200

    Adding chart-id to chartrenderer (#6832)
    
    * Adding chart-id to chatrenderer
    
    * Update ChartRenderer.jsx
---
 superset/assets/src/chart/ChartRenderer.jsx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/superset/assets/src/chart/ChartRenderer.jsx b/superset/assets/src/chart/ChartRenderer.jsx
index a05ecaf..bae2682 100644
--- a/superset/assets/src/chart/ChartRenderer.jsx
+++ b/superset/assets/src/chart/ChartRenderer.jsx
@@ -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()}


Mime
View raw message