Skip to content

Commit c61b41a

Browse files
Create hidden-datasets-performance.js
1 parent a153556 commit c61b41a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const datasets = [];
2+
3+
for (let i = 0; i < 200; i++) {
4+
datasets.push({
5+
label: `Dataset ${i}`,
6+
data: Array.from({ length: 100 }, () => Math.random() * 100),
7+
hidden: i !== 0 // only 1 visible
8+
});
9+
}
10+
11+
new Chart(ctx, {
12+
type: 'line',
13+
data: {
14+
labels: Array.from({ length: 100 }, (_, i) => i),
15+
datasets
16+
}
17+
});

0 commit comments

Comments
 (0)