@funnest/charts-react 0.6.19 → 0.6.21
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/README.md +10 -12
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,37 +1,35 @@
|
|
|
1
1
|
# @funnest/charts-react
|
|
2
2
|
|
|
3
|
-
React
|
|
4
|
-
|
|
5
|
-
React bindings: the <FnChart /> trading chart plus SVG line, area and bar charts.
|
|
3
|
+
React bindings for Funnest Charts: the `<FnChart />` trading chart plus SVG line, area and bar charts.
|
|
6
4
|
|
|
7
5
|
```bash
|
|
8
6
|
npm i @funnest/charts-react
|
|
9
7
|
```
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
Trading chart:
|
|
12
10
|
|
|
13
11
|
```tsx
|
|
14
12
|
import { FnChart } from '@funnest/charts-react';
|
|
15
13
|
|
|
16
14
|
<div style={{ height: 600 }}>
|
|
17
|
-
<FnChart datafeed={myDatafeed} symbol="
|
|
15
|
+
<FnChart datafeed={myDatafeed} symbol="AAPL" resolution="1D" />
|
|
18
16
|
</div>
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
|
|
19
|
+
Dashboard charts (SSR-safe):
|
|
22
20
|
|
|
23
21
|
```tsx
|
|
24
22
|
import { LineChart, ReferenceLine } from '@funnest/charts-react';
|
|
25
23
|
|
|
26
24
|
<LineChart series={[{ id: 'price', data: prices }]} area="gradient" scrubber={{ showValues: true }}>
|
|
27
|
-
<ReferenceLine dataY={avgPrice} label="
|
|
25
|
+
<ReferenceLine dataY={avgPrice} label="Avg. price" />
|
|
28
26
|
</LineChart>
|
|
29
27
|
```
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
Components: `LineChart`, `AreaChart`, `BarChart`, `PercentageBarChart`, `CartesianChart`, `XAxis`, `YAxis`, `Scrubber`, `ReferenceLine`, `Point`, `Legend`, `PeriodSelector`
|
|
32
30
|
|
|
33
|
-
##
|
|
31
|
+
## Links
|
|
34
32
|
|
|
35
|
-
-
|
|
36
|
-
- GitHub: https://github.com/funnest-xyz/funnest-charts
|
|
37
|
-
-
|
|
33
|
+
- Docs: https://charts.funnest.xyz/docs/
|
|
34
|
+
- GitHub: https://github.com/funnest-xyz/funnest-charts ([한국어](https://github.com/funnest-xyz/funnest-charts/blob/main/README.ko.md))
|
|
35
|
+
- License: Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.21",
|
|
4
4
|
"description": "React bindings for Funnest Charts: the trading widget plus SVG line, area and bar charts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"NOTICE"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@funnest/charts": "0.6.
|
|
50
|
-
"@funnest/charts-viz": "0.6.
|
|
51
|
-
"@funnest/charts-ui": "0.6.
|
|
49
|
+
"@funnest/charts": "0.6.21",
|
|
50
|
+
"@funnest/charts-viz": "0.6.21",
|
|
51
|
+
"@funnest/charts-ui": "0.6.21"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": ">=18",
|