@chartts/svelte 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +70 -0
  2. package/package.json +5 -4
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ <p align="center">
2
+ <a href="https://www.npmjs.com/package/@chartts/svelte"><img src="https://img.shields.io/npm/v/@chartts/svelte?color=06B6D4&label=npm" alt="npm version" /></a>
3
+ <a href="https://github.com/chartts/chartts/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-06B6D4" alt="MIT License" /></a>
4
+ <a href="https://chartts.com"><img src="https://img.shields.io/badge/docs-chartts.com-06B6D4" alt="Documentation" /></a>
5
+ </p>
6
+
7
+ # @chartts/svelte
8
+
9
+ Chartts for Svelte. 40+ chart types, beautiful defaults, Tailwind ready.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ npm install @chartts/svelte @chartts/core
15
+ ```
16
+
17
+ ## Quick start
18
+
19
+ ```svelte
20
+ <script>
21
+ import { LineChart } from "@chartts/svelte"
22
+ const data = {
23
+ labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
24
+ series: [{ name: "Revenue", values: [4200, 5800, 7100, 6400, 8200, 9600] }]
25
+ }
26
+ </script>
27
+
28
+ <LineChart {data} />
29
+ ```
30
+
31
+ ## Available components
32
+
33
+ Every chart type has a dedicated component: `LineChart`, `BarChart`, `AreaChart`, `PieChart`, `DonutChart`, `ScatterChart`, `CandlestickChart`, `RadarChart`, `HeatmapChart`, `TreemapChart`, `GaugeChart`, `WaterfallChart`, `FunnelChart`, `SankeyChart`, and 25+ more.
34
+
35
+ All components accept the same `data` prop and all `ChartOptions` as props.
36
+
37
+ ## Theming
38
+
39
+ ```ts
40
+ // Built-in presets
41
+ <LineChart data={data} theme="corporate" />
42
+ <LineChart data={data} theme="ocean" />
43
+
44
+ // Auto light/dark
45
+ <LineChart data={data} theme="auto" />
46
+
47
+ // Extra themes from @chartts/themes
48
+ import { neonTheme } from "@chartts/themes"
49
+ <LineChart data={data} theme={neonTheme} />
50
+ ```
51
+
52
+ ## Why Chartts?
53
+
54
+ - **Beautiful by default** — zero config charts that look great
55
+ - **Under 15kb gzipped** — the entire core library
56
+ - **Real SVG** — CSS works. Devtools work. Screen readers work.
57
+ - **Tailwind ready** — style with classes you already know
58
+ - **TypeScript-first** — strict types, autocomplete everywhere
59
+
60
+ ## Part of Chartts
61
+
62
+ Beautiful charts. Tiny bundle. Every framework.
63
+
64
+ - [Documentation](https://chartts.com/docs)
65
+ - [GitHub](https://github.com/chartts/chartts)
66
+ - [All packages](https://www.npmjs.com/org/chartts)
67
+
68
+ ## License
69
+
70
+ MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chartts/svelte",
3
- "version": "0.1.3",
4
- "description": "Chartts Svelte components native, not a wrapper.",
3
+ "version": "0.1.4",
4
+ "description": "Chartts for Svelte. 40+ chart types, beautiful defaults, Tailwind ready.",
5
5
  "type": "module",
6
6
  "svelte": "./src/index.ts",
7
7
  "types": "./dist/exports.d.ts",
@@ -17,12 +17,13 @@
17
17
  },
18
18
  "files": [
19
19
  "dist",
20
- "src"
20
+ "src",
21
+ "README.md"
21
22
  ],
22
23
  "sideEffects": false,
23
24
  "peerDependencies": {
24
25
  "svelte": ">=4.0.0",
25
- "@chartts/core": "0.1.3"
26
+ "@chartts/core": "0.1.4"
26
27
  },
27
28
  "license": "MIT",
28
29
  "repository": {