@sckyzo/cosmos-charts 0.3.1 → 0.4.0
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.
- package/CHANGELOG.md +7 -0
- package/README.md +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to `@sckyzo/cosmos-charts` are documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.0](https://github.com/SckyzO/cosmos/compare/@sckyzo/cosmos-charts@0.3.1...@sckyzo/cosmos-charts@0.4.0) (2026-10-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* **charts:** add the `@source` line to the install steps ([80f1687](https://github.com/SckyzO/cosmos/commit/80f16872bb9e68ad13924034a15eb6d2a123695b))
|
|
14
|
+
|
|
8
15
|
## [0.3.1](https://github.com/SckyzO/cosmos/compare/@sckyzo/cosmos-charts@0.3.0...@sckyzo/cosmos-charts@0.3.1) (2026-10-30)
|
|
9
16
|
|
|
10
17
|
|
package/README.md
CHANGED
|
@@ -15,6 +15,17 @@ pnpm add @sckyzo/cosmos-charts
|
|
|
15
15
|
pnpm add react react-dom # peers, react 19+
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
A few charts carry Tailwind 4 classes: the legend's focus ring, the calendar's shades in a dark
|
|
19
|
+
theme. Point Tailwind at this package too, in the CSS file that imports it, next to the `@source`
|
|
20
|
+
line for `@sckyzo/cosmos-react`. Without it, those classes are not generated.
|
|
21
|
+
|
|
22
|
+
```css
|
|
23
|
+
@source '../node_modules/@sckyzo/cosmos-charts/dist/**/*.{js,cjs}';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
From 0.4.0, the three Cosmos packages share one version number: install the same version of
|
|
27
|
+
`@sckyzo/cosmos-charts` as of `@sckyzo/cosmos-react` and `@sckyzo/cosmos-theme`.
|
|
28
|
+
|
|
18
29
|
## How the charts are drawn
|
|
19
30
|
|
|
20
31
|
Every chart is drawn with Recharts, except `HeatmapChart` and `FunnelChart`, drawn in HTML and SVG (Recharts has no heatmap, and its bars cannot be joined by a flow), and `WorldMap`, an SVG of its own (Recharts has no map). The rules every chart follows:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sckyzo/cosmos-charts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "React chart components for the Cosmos design system — themeable Recharts wrappers (bar, line, area, donut, radial gauges, sparkline, treemap, realtime, heatmap, radar, scatter, bubble, box plot, range bar, mixed) that follow the Cosmos theme and accent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SckyzO",
|