Skip to content

Commit 5fbb46c

Browse files
committed
Improve Charts bundle-size comparison
1 parent 2509d3a commit 5fbb46c

5 files changed

Lines changed: 222 additions & 231 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@
6363
"@tanstack/ai-anthropic": "^0.10.1",
6464
"@tanstack/ai-client": "^0.11.3",
6565
"@tanstack/ai-openai": "^0.9.5",
66-
"@tanstack/charts": "0.3.0",
66+
"@tanstack/charts": "0.3.1",
6767
"@tanstack/create": "^0.69.0",
6868
"@tanstack/highlight": "^0.0.9",
6969
"@tanstack/markdown": "^0.0.11",
7070
"@tanstack/pacer": "^0.21.1",
71-
"@tanstack/react-charts": "0.3.0",
71+
"@tanstack/react-charts": "0.3.1",
7272
"@tanstack/react-hotkeys": "^0.10.0",
7373
"@tanstack/react-pacer": "^0.22.1",
7474
"@tanstack/react-query": "^5.100.11",

pnpm-lock.yaml

Lines changed: 19 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/landing/ChartsLanding.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
ActivationChart,
1010
BundleSizeFigure,
1111
KineticChartsHero,
12-
ResponsiveChartComparison,
1312
ThemeGallery,
1413
} from './ChartsLandingGraphics'
1514
import {
@@ -27,7 +26,7 @@ export default function ChartsLanding({
2726
}) {
2827
return (
2928
<LibraryLandingShell
30-
description="TanStack Charts 0.1.0 is on npm. Install @tanstack/charts for vanilla TypeScript or add the 0.1.0 adapter for React, Vue, Svelte, Solid, Angular, Preact, Lit, Alpine, or Octane."
29+
description="TanStack Charts 0.3.1 is on npm. A compact React line consumer is 16.48 KiB gzip; its framework-neutral scene is 8.12 KiB."
3130
headline="A chart grammar you don't have to outgrow."
3231
hero={<KineticChartsHero />}
3332
libraryId="charts"
@@ -114,26 +113,28 @@ export default function ChartsLanding({
114113
</div>
115114
</LandingSection>
116115

117-
<LandingSection tone="raised">
116+
<LandingSection id="bundle-size" tone="raised">
118117
<div className="grid gap-8 lg:grid-cols-[0.88fr_1.12fr] lg:items-end lg:gap-16">
119118
<h2 className="max-w-3xl font-ds-display text-ds-heading-1 md:text-ds-display-md">
120-
Complete SVG charts. 24.2–24.8 KiB gzip.
119+
16.48 KiB for a compact React line.
121120
</h2>
122121
<p className="max-w-2xl text-ds-body-sm text-text-secondary sm:text-ds-body-md">
123-
Measured minified and gzipped from one-series charts in the{' '}
122+
The framework-neutral scene is 8.12 KiB and retains neither D3 nor
123+
InternMap. For an apples-to-apples comparison, the{' '}
124124
<a
125125
href="/charts/latest/docs/comparison"
126126
className="text-[var(--landing-accent-bright)] underline decoration-current/30 underline-offset-4 hover:decoration-current"
127127
>
128-
reproducible comparison suite
129-
</a>
130-
. Granular imports leave unrelated marks and D3 modules out.
128+
pinned 12-case suite
129+
</a>{' '}
130+
measures full cold-page browser bundles across line, bar, area, and
131+
scatter × basic, interactive, and advanced; TanStack spans
132+
26.58–32.08 KiB gzip.
131133
</p>
132134
</div>
133135

134-
<div className="mt-10 grid gap-5 xl:grid-cols-[0.62fr_1.38fr]">
136+
<div className="mt-10">
135137
<BundleSizeFigure />
136-
<ResponsiveChartComparison />
137138
</div>
138139
</LandingSection>
139140

0 commit comments

Comments
 (0)