mirror of https://github.com/apache/superset.git
[bubbles] issue when using duplicated metrics (#7087)
This commit is contained in:
parent
778812419b
commit
e61a8ee6bf
|
@ -954,11 +954,11 @@ class BubbleViz(NVD3Viz):
|
|||
self.series = form_data.get('series') or self.entity
|
||||
d['row_limit'] = form_data.get('limit')
|
||||
|
||||
d['metrics'] = [
|
||||
d['metrics'] = list(set([
|
||||
self.z_metric,
|
||||
self.x_metric,
|
||||
self.y_metric,
|
||||
]
|
||||
]))
|
||||
if not all(d['metrics'] + [self.entity]):
|
||||
raise Exception(_('Pick a metric for x, y and size'))
|
||||
return d
|
||||
|
|
Loading…
Reference in New Issue