Skip to content

Commit f29b673

Browse files
committed
Add staked chart for rollups statistic
1 parent 27871c4 commit f29b673

File tree

9 files changed

+712
-169
lines changed

9 files changed

+712
-169
lines changed

components/modals/ChartModal.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Modal from "@/components/ui/Modal.vue"
1111
/** Stats Components/Constants */
1212
import BarChart from "@/components/modules/stats/BarChart.vue"
1313
import LineChart from "@/components/modules/stats/LineChart.vue"
14-
import SquareSizeChart from "@/components/modules/stats/SquareSizeChart.vue"
14+
import BarplotStakedChart from "@/components/modules/stats/BarplotStakedChart.vue"
1515
1616
/** Store */
1717
import { useCacheStore } from "@/store/cache"
@@ -43,6 +43,7 @@ watch(
4343
<Modal :show="show" @onClose="emit('onClose')" fullscreen disable-trap>
4444
<LineChart v-if="chartView === 'line'" :series="series" />
4545
<BarChart v-else-if="chartView === 'bar'" :series="series" />
46+
<BarplotStakedChart v-else-if="chartView === 'barplot-stacked'" :series="series" />
4647
</Modal>
4748
</template>
4849

components/modules/stats/BarplotChartCard.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<script setup>
22
/** Vendor */
33
import * as d3 from "d3"
4-
import { DateTime } from "luxon"
5-
6-
/** Stats Components */
7-
import DiffChip from "@/components/modules/stats/DiffChip.vue"
8-
9-
/** Services */
10-
import { abbreviate, capitilize, comma, formatBytes } from "@/services/utils"
11-
12-
/** API */
13-
import { fetchSeries, fetchSeriesCumulative } from "@/services/api/stats"
144
155
const props = defineProps({
166
series: {

0 commit comments

Comments
 (0)