Skip to content

Commit 31c32d6

Browse files
committed
fix: chart styling
1 parent 57c2e14 commit 31c32d6

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

chart/index.html

+25-10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
--deno: #70ffaf;
1414
--bun: #f472b6;
1515
--vlt: #000000;
16+
--nx: #3b82f6;
17+
--turbo: #ff1e56;
1618
}
1719

1820
.ct-chart {
@@ -47,26 +49,39 @@
4749
.ct-series-g .ct-bar, .ct-series-g .ct-line, .ct-series-g .ct-point, .ct-series-g .ct-slice-donut {
4850
stroke: var(--vlt);
4951
}
52+
/* nx */
53+
.ct-series-h .ct-bar, .ct-series-h .ct-line, .ct-series-h .ct-point, .ct-series-h .ct-slice-donut {
54+
stroke: var(--nx);
55+
}
56+
/* turbo */
57+
.ct-series-i .ct-bar, .ct-series-i .ct-line, .ct-series-i .ct-point, .ct-series-i .ct-slice-donut {
58+
stroke: var(--turbo);
59+
}
5060
</style>
5161
</head>
5262
<body>
5363
<div class="ct-chart ct-perfect-fourth"></div>
5464
<script defer>
5565
var data = {
56-
labels: ['Linux (Next)', 'Linux (Vue)', 'Linux (Astro)', 'Linux (Svelte)'],
57-
series: [
58-
[5, 4, 3, 7],
59-
[3, 2, 9, 5],
60-
[3, 2, 9, 5],
61-
[3, 2, 9, 5],
62-
[3, 2, 9, 5],
63-
[3, 2, 9, 5],
64-
[3, 2, 9, 5]
66+
labels: ['Next', 'Vue', 'Astro', 'Svelte', 'Run'],
67+
series: [
68+
[5, 4, 3, 7, 10], // npm
69+
[5, 4, 3, 7, 2], // pnpm
70+
[5, 4, 3, 7, 3], // yarn
71+
[5, 4, 3, 7, 1], // yarn v2+
72+
[5, 4, 3, 7, 7], // deno
73+
[5, 4, 3, 7, 6], // bun
74+
[3, 1, 4, 2, 10], // vlt
75+
[0, 0, 0, 0, 11], // nx
76+
[0, 0, 0, 0, 12] // turbo
6577
]
6678
};
6779

6880
var options = {
69-
seriesBarDistance: 10
81+
seriesBarDistance: 15,
82+
axisX: {
83+
showGrid: false
84+
}
7085
};
7186

7287
new Chartist.Bar('.ct-chart', data, options);

0 commit comments

Comments
 (0)