michael-s-molina commented on code in PR #23973:
URL: https://github.com/apache/superset/pull/23973#discussion_r1202228034
##########
superset/migrations/shared/migrate_viz/processors.py:
##########
@@ -53,3 +86,30 @@ def _pre_action(self) -> None:
if x_axis_label:
self.data["x_axis_title"] = x_axis_label
self.data["x_axis_title_margin"] = 30
+
+
+class MigrateLineChart(TimeseriesChart):
+ source_viz_type = "line"
+ target_viz_type = "echarts_timeseries_line"
+ rename_keys = {
+ "x_axis_label": "x_axis_title",
+ "bottom_margin": "x_axis_title_margin",
+ "x_axis_format": "x_axis_time_format",
+ "y_axis_label": "y_axis_title",
+ "left_margin": "y_axis_title_margin",
+ "y_axis_showminmax": "truncateYAxis",
+ "y_log_scale": "logAxis",
+ }
+
+ def _pre_action(self) -> None:
+ super()._pre_action()
+
+ line_interpolation = self.data.get("line_interpolation")
Review Comment:
Same as above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]