tiny-spark 0.1.0-alpha.2 → 0.1.0-alpha.3
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/package.json +1 -1
- package/dist/README.md +0 -40
package/package.json
CHANGED
package/dist/README.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# tiny-spark
|
|
2
|
-
|
|
3
|
-
[](https://github.com/graphieros/tiny-spark)
|
|
4
|
-
[](https://github.com/graphieros/tiny-spark/issues)
|
|
5
|
-
[](https://github.com/graphieros/tiny-spark?tab=MIT-1-ov-file#readme)
|
|
6
|
-
[](https://github.com/graphieros/tiny-spark)
|
|
7
|
-
|
|
8
|
-
An elegant, reactive and responsive sparkline chart solution without dependency.
|
|
9
|
-
|
|
10
|
-
## Installation
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
npm i tiny-spark
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Usage
|
|
17
|
-
|
|
18
|
-
Just set up a div with a "tiny-spark" class, with a few data attributes to configure the chart.
|
|
19
|
-
|
|
20
|
-
```html
|
|
21
|
-
<div style="width: 100%">
|
|
22
|
-
<div
|
|
23
|
-
class="tiny-spark"
|
|
24
|
-
data-curve="true"
|
|
25
|
-
data-set="[1, 2, 3, 5, 8, 13]"
|
|
26
|
-
data-dates='["01-2026", "02-2026", "03-2026", "04-2026", "05-2026", "06-2026"]'
|
|
27
|
-
data-responsive
|
|
28
|
-
data-animation="true"
|
|
29
|
-
data-line-color="#4A4A4A"
|
|
30
|
-
data-area-color="#1A1A1A10"
|
|
31
|
-
data-line-thickness="4"
|
|
32
|
-
data-plot-color="#2A2A2A"
|
|
33
|
-
data-plot-radius="2"
|
|
34
|
-
data-number-locale="en-US"
|
|
35
|
-
data-number-rounding="2"
|
|
36
|
-
data-indicator-color="#1A1A1A"
|
|
37
|
-
data-indicator-width="1"
|
|
38
|
-
></div>
|
|
39
|
-
</div>
|
|
40
|
-
```
|