mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
[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
|
self.series = form_data.get('series') or self.entity
|
||||||
d['row_limit'] = form_data.get('limit')
|
d['row_limit'] = form_data.get('limit')
|
||||||
|
|
||||||
d['metrics'] = [
|
d['metrics'] = list(set([
|
||||||
self.z_metric,
|
self.z_metric,
|
||||||
self.x_metric,
|
self.x_metric,
|
||||||
self.y_metric,
|
self.y_metric,
|
||||||
]
|
]))
|
||||||
if not all(d['metrics'] + [self.entity]):
|
if not all(d['metrics'] + [self.entity]):
|
||||||
raise Exception(_('Pick a metric for x, y and size'))
|
raise Exception(_('Pick a metric for x, y and size'))
|
||||||
return d
|
return d
|
||||||
|
Loading…
Reference in New Issue
Block a user