mirror of https://github.com/apache/superset.git
[bubble-chart] Fixing issue w/ metric names (#5237)
This commit is contained in:
parent
d483ed121c
commit
5c106b9a20
|
@ -947,9 +947,9 @@ class BubbleViz(NVD3Viz):
|
|||
return d
|
||||
|
||||
def get_data(self, df):
|
||||
df['x'] = df[[self.x_metric]]
|
||||
df['y'] = df[[self.y_metric]]
|
||||
df['size'] = df[[self.z_metric]]
|
||||
df['x'] = df[[utils.get_metric_name(self.x_metric)]]
|
||||
df['y'] = df[[utils.get_metric_name(self.y_metric)]]
|
||||
df['size'] = df[[utils.get_metric_name(self.z_metric)]]
|
||||
df['shape'] = 'circle'
|
||||
df['group'] = df[[self.series]]
|
||||
|
||||
|
|
Loading…
Reference in New Issue