mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: Viz migration adjustments - 1 (#24341)
This commit is contained in:
committed by
GitHub
parent
9adb023880
commit
4e47771df1
@@ -80,13 +80,15 @@ class MigratePivotTable(MigrateViz):
|
||||
def _pre_action(self) -> None:
|
||||
if pivot_margins := self.data.get("pivot_margins"):
|
||||
self.data["colTotals"] = pivot_margins
|
||||
self.data["rowTotals"] = pivot_margins
|
||||
|
||||
if pandas_aggfunc := self.data.get("pandas_aggfunc"):
|
||||
self.data["pandas_aggfunc"] = self.aggregation_mapping[pandas_aggfunc]
|
||||
|
||||
self.data["rowOrder"] = "value_z_to_a"
|
||||
|
||||
|
||||
class MigrateDualLine(MigrateViz):
|
||||
has_x_axis_control = True
|
||||
source_viz_type = "dual_line"
|
||||
target_viz_type = "mixed_timeseries"
|
||||
rename_keys = {
|
||||
|
||||
Reference in New Issue
Block a user