Skip to content

Commit 34f9d92

Browse files
committed
Reset zoom when clicking on chart
1 parent a047e07 commit 34f9d92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web_src/js/components/RepoContributors.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ const sfc = {
8989
return {
9090
responsive: true,
9191
animation: false,
92+
onClick: (e) => {
93+
e.chart.resetZoom()
94+
},
9295
plugins: {
9396
legend: {
9497
display: false,

0 commit comments

Comments
 (0)