Skip to content

Commit 6708960

Browse files
authored
Merge pull request wildfish#15 from wildfish/bugfix/plotly-chart-js
Plotly JS Fix
2 parents efc0f90 + 9e70f31 commit 6708960

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

dashboards/component/chart/chart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ class Chart(Component):
1717

1818
value: Optional[Union[Callable[..., Any], Type["ChartSerializer"]]] = None
1919
defer: Optional[Union[Callable[..., Any], Type["ChartSerializer"]]] = None
20+
21+
class Media:
22+
js = ("dashboards/vendor/js/plotly.min.js",)

dashboards/component/map.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ class Map(Component):
1515
# we should also probably accept objects which have a to_json() on them
1616
value: Optional[str] = None
1717
defer: Optional[Callable[[HttpRequest], str]] = None
18+
19+
class Media:
20+
js = ("dashboards/vendor/js/plotly.min.js",)

0 commit comments

Comments
 (0)