SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit d6dedcc6 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

fix(graphs): :art: inhert plot kind options from base class

parent b986e745
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ class TimelinePlot(PlotKind): ...@@ -140,7 +140,7 @@ class TimelinePlot(PlotKind):
return x, y return x, y
class Options(BaseOptions): class Options(PlotKind.Options):
prefix = "timeline_plot_" prefix = "timeline_plot_"
timeline_key = forms.ChoiceField( timeline_key = forms.ChoiceField(
label="Timeline key", initial="id", required=False, choices=[] label="Timeline key", initial="id", required=False, choices=[]
...@@ -306,7 +306,7 @@ class MapPlot(PlotKind): ...@@ -306,7 +306,7 @@ class MapPlot(PlotKind):
return countries, agg return countries, agg
class Options(BaseOptions): class Options(PlotKind.Options):
prefix = "map_plot_" prefix = "map_plot_"
agg_func = forms.ChoiceField( agg_func = forms.ChoiceField(
label="Aggregation function", label="Aggregation function",
...@@ -432,7 +432,7 @@ class BarPlot(PlotKind): ...@@ -432,7 +432,7 @@ class BarPlot(PlotKind):
else: else:
return [], [] return [], []
class Options(BaseOptions): class Options(PlotKind.Options):
prefix = "bar_plot_" prefix = "bar_plot_"
direction = forms.ChoiceField( direction = forms.ChoiceField(
label="Direction", label="Direction",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment