Skip to content

Commit 692e805

Browse files
committed
Update totalActiveUsersChartOptions in MetricsViewer.vue
1 parent d6a3844 commit 692e805

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/components/MetricsViewer.vue

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Line :data="chartData" :options="chartOptions" />
66

77
<h2>Total Active Users</h2>
8-
<Bar :data="totalActiveUsersChartData" :options="chartOptions" />
8+
<Bar :data="totalActiveUsersChartData" :options="totalActiveUsersChartOptions" />
99

1010
</div>
1111
</template>
@@ -59,6 +59,19 @@ export default defineComponent({
5959
maintainAspectRatio: true
6060
};
6161
62+
const totalActiveUsersChartOptions = {
63+
responsive: true,
64+
maintainAspectRatio: true,
65+
scales: {
66+
y: {
67+
beginAtZero: true,
68+
ticks: {
69+
stepSize: 1
70+
}
71+
}
72+
}
73+
};
74+
6275
getGitHubCopilotMetricsApi().then(data => {
6376
metrics.value = data;
6477
chartData.value = {
@@ -93,7 +106,7 @@ export default defineComponent({
93106
};
94107
});
95108
96-
return { chartData, chartOptions, totalActiveUsersChartData };
109+
return { chartData, chartOptions, totalActiveUsersChartData, totalActiveUsersChartOptions };
97110
}
98111
});
99112
</script>

0 commit comments

Comments
 (0)