Skip to content

Commit a439bc7

Browse files
committed
fix tests
1 parent 8a7e3b0 commit a439bc7

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

dashboards/component/chart/chart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
@dataclass
1212
class Chart(Component):
1313
template_name: str = "dashboards/components/chart/chart.html"
14+
displayModeBar: Optional[bool] = True
15+
staticPlot: Optional[bool] = False
16+
responsive: Optional[bool] = True
1417

1518
value: Optional[Union[Callable[..., Any], Type["ChartSerializer"]]] = None
1619
defer: Optional[Union[Callable[..., Any], Type["ChartSerializer"]]] = None

tests/dashboards/components/snapshots/snap_test_base.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
data_dashapp1testdashboardcomponenttest.data,
2323
data_dashapp1testdashboardcomponenttest.layout,
2424
{
25-
displayModeBar: false,
25+
displayModeBar: "hover",
2626
staticPlot: false,
27-
responsive: false
27+
responsive: true
2828
},
2929
);
3030
</script>
@@ -93,9 +93,9 @@
9393
data_dashapp1testdashboardcomponenttest.data,
9494
data_dashapp1testdashboardcomponenttest.layout,
9595
{
96-
displayModeBar: false,
96+
displayModeBar: "hover",
9797
staticPlot: false,
98-
responsive: false
98+
responsive: true
9999
},
100100
);
101101
</script>
@@ -164,9 +164,9 @@
164164
data_dashapp1testdashboardcomponenttest.data,
165165
data_dashapp1testdashboardcomponenttest.layout,
166166
{
167-
displayModeBar: false,
167+
displayModeBar: "hover",
168168
staticPlot: false,
169-
responsive: false
169+
responsive: true
170170
},
171171
);
172172
</script>
@@ -235,9 +235,9 @@
235235
data_dashapp1testdashboardcomponenttest.data,
236236
data_dashapp1testdashboardcomponenttest.layout,
237237
{
238-
displayModeBar: false,
238+
displayModeBar: "hover",
239239
staticPlot: false,
240-
responsive: false
240+
responsive: true
241241
},
242242
);
243243
</script>
@@ -360,9 +360,9 @@
360360
data_dashapp1testdashboardcomponenttest.data,
361361
data_dashapp1testdashboardcomponenttest.layout,
362362
{
363-
displayModeBar: false,
363+
displayModeBar: "hover",
364364
staticPlot: false,
365-
responsive: false
365+
responsive: true
366366
},
367367
);
368368
</script>

0 commit comments

Comments
 (0)