Skip to content

Commit 5dd5749

Browse files
committed
fix: chart axis range
1 parent 7089545 commit 5dd5749

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controller/sentry/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_chart_data(self, sentry_id):
8787
"scales": {
8888
"xAxis": {"type": "timeseries"},
8989
"series": {"position": "left"},
90-
"signal": {"position": "right"},
90+
"signal": {"position": "right", "min": 0, "max": 2},
9191
},
9292
"plugins": {"legend": {"position": "bottom"}, "title": {"display": True, "text": "Detection Result"}},
9393
"elements": {"line": {"stepped": True}, "point": {"radius": 0}},

controller/sentry/tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def test_project_chart(super_call: Mock, admin_with_user):
445445
"scales": {
446446
"xAxis": {"type": "timeseries"},
447447
"series": {"position": "left"},
448-
"signal": {"position": "right"},
448+
"signal": {"position": "right", "min": 0, "max": 2},
449449
},
450450
"plugins": {"legend": {"position": "bottom"}, "title": {"display": True, "text": "Detection Result"}},
451451
"elements": {"line": {"stepped": True}, "point": {"radius": 0}},

0 commit comments

Comments
 (0)