@chartts/angular 0.1.3 → 0.1.5

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 +76 -0
  2. package/package.json +5 -4
package/README.md ADDED
@@ -0,0 +1,76 @@
1
+ <p align="center">
2
+ <a href="https://www.npmjs.com/package/@chartts/angular"><img src="https://img.shields.io/npm/v/@chartts/angular?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/angular
8
+
9
+ Chartts for Angular. 40+ chart types, beautiful defaults, Tailwind ready.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ npm install @chartts/angular @chartts/core
15
+ ```
16
+
17
+ ## Quick start
18
+
19
+ ```typescript
20
+ import { Component } from "@angular/core"
21
+ import { LineChartComponent } from "@chartts/angular"
22
+
23
+ @Component({
24
+ selector: "app-dashboard",
25
+ standalone: true,
26
+ imports: [LineChartComponent],
27
+ template: `<chartts-line [data]="data"></chartts-line>`,
28
+ })
29
+ export class Dashboard {
30
+ data = {
31
+ labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
32
+ series: [{ name: "Revenue", values: [4200, 5800, 7100, 6400, 8200, 9600] }],
33
+ }
34
+ }
35
+ ```
36
+
37
+ ## Available components
38
+
39
+ Every chart type has a dedicated component: `LineChart`, `BarChart`, `AreaChart`, `PieChart`, `DonutChart`, `ScatterChart`, `CandlestickChart`, `RadarChart`, `HeatmapChart`, `TreemapChart`, `GaugeChart`, `WaterfallChart`, `FunnelChart`, `SankeyChart`, and 25+ more.
40
+
41
+ All components accept the same `data` prop and all `ChartOptions` as props.
42
+
43
+ ## Theming
44
+
45
+ ```ts
46
+ // Built-in presets
47
+ <LineChart data={data} theme="corporate" />
48
+ <LineChart data={data} theme="ocean" />
49
+
50
+ // Auto light/dark
51
+ <LineChart data={data} theme="auto" />
52
+
53
+ // Extra themes from @chartts/themes
54
+ import { neonTheme } from "@chartts/themes"
55
+ <LineChart data={data} theme={neonTheme} />
56
+ ```
57
+
58
+ ## Why Chartts?
59
+
60
+ - **Beautiful by default** — zero config charts that look great
61
+ - **Under 15kb gzipped** — the entire core library
62
+ - **Real SVG** — CSS works. Devtools work. Screen readers work.
63
+ - **Tailwind ready** — style with classes you already know
64
+ - **TypeScript-first** — strict types, autocomplete everywhere
65
+
66
+ ## Part of Chartts
67
+
68
+ Beautiful charts. Tiny bundle. Every framework.
69
+
70
+ - [Documentation](https://chartts.com/docs)
71
+ - [GitHub](https://github.com/chartts/chartts)
72
+ - [All packages](https://www.npmjs.com/org/chartts)
73
+
74
+ ## License
75
+
76
+ MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chartts/angular",
3
- "version": "0.1.3",
4
- "description": "Chartts Angular components native, not a wrapper.",
3
+ "version": "0.1.5",
4
+ "description": "Chartts for Angular. 40+ chart types, beautiful defaults, Tailwind ready.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -14,12 +14,13 @@
14
14
  }
15
15
  },
16
16
  "files": [
17
- "dist"
17
+ "dist",
18
+ "README.md"
18
19
  ],
19
20
  "sideEffects": false,
20
21
  "peerDependencies": {
21
22
  "@angular/core": ">=17.0.0",
22
- "@chartts/core": "0.1.3"
23
+ "@chartts/core": "0.1.5"
23
24
  },
24
25
  "license": "MIT",
25
26
  "repository": {