@krizaka/charts 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +47 -2
- package/dist/bar.d.ts +17 -0
- package/dist/bar.js +16 -0
- package/dist/bar.js.map +1 -0
- package/dist/candlestick-IG626XL4.js +13 -0
- package/dist/candlestick-IG626XL4.js.map +1 -0
- package/dist/candlestick.d.ts +42 -0
- package/dist/candlestick.js +13 -0
- package/dist/candlestick.js.map +1 -0
- package/dist/canvas-4MSYDVFO.js +14 -0
- package/dist/canvas-4MSYDVFO.js.map +1 -0
- package/dist/cartesian-BRhNQ3ib.d.ts +34 -0
- package/dist/chart.d.ts +58 -0
- package/dist/chart.js +11 -0
- package/dist/chart.js.map +1 -0
- package/dist/chunk-3CJHBJXA.js +186 -0
- package/dist/chunk-3CJHBJXA.js.map +1 -0
- package/dist/chunk-6FINSUOS.js +49 -0
- package/dist/chunk-6FINSUOS.js.map +1 -0
- package/dist/chunk-7CSAGFBW.js +166 -0
- package/dist/chunk-7CSAGFBW.js.map +1 -0
- package/dist/chunk-7TIFCK5E.js +103 -0
- package/dist/chunk-7TIFCK5E.js.map +1 -0
- package/dist/chunk-AHQXJSAQ.js +38 -0
- package/dist/chunk-AHQXJSAQ.js.map +1 -0
- package/dist/chunk-ANUCSRUN.js +43 -0
- package/dist/chunk-ANUCSRUN.js.map +1 -0
- package/dist/chunk-BISL7DYW.js +66 -0
- package/dist/chunk-BISL7DYW.js.map +1 -0
- package/dist/chunk-BZ5CQFPH.js +19 -0
- package/dist/chunk-BZ5CQFPH.js.map +1 -0
- package/dist/chunk-DWJPPEMC.js +455 -0
- package/dist/chunk-DWJPPEMC.js.map +1 -0
- package/dist/chunk-DZB6HEVO.js +73 -0
- package/dist/chunk-DZB6HEVO.js.map +1 -0
- package/dist/chunk-EK3Z647J.js +133 -0
- package/dist/chunk-EK3Z647J.js.map +1 -0
- package/dist/chunk-I5QUZVU2.js +234 -0
- package/dist/chunk-I5QUZVU2.js.map +1 -0
- package/dist/chunk-OB5EFDDH.js +118 -0
- package/dist/chunk-OB5EFDDH.js.map +1 -0
- package/dist/chunk-OER6ETT4.js +155 -0
- package/dist/chunk-OER6ETT4.js.map +1 -0
- package/dist/chunk-PTSB3H5Q.js +205 -0
- package/dist/chunk-PTSB3H5Q.js.map +1 -0
- package/dist/chunk-TPJDOB7R.js +15 -0
- package/dist/chunk-TPJDOB7R.js.map +1 -0
- package/dist/chunk-UNK4MJVG.js +378 -0
- package/dist/chunk-UNK4MJVG.js.map +1 -0
- package/dist/chunk-VKO2OYYM.js +88 -0
- package/dist/chunk-VKO2OYYM.js.map +1 -0
- package/dist/chunk-VKTZD7UT.js +107 -0
- package/dist/chunk-VKTZD7UT.js.map +1 -0
- package/dist/chunk-W5FX4TU3.js +102 -0
- package/dist/chunk-W5FX4TU3.js.map +1 -0
- package/dist/chunk-WBH2QU77.js +178 -0
- package/dist/chunk-WBH2QU77.js.map +1 -0
- package/dist/chunk-WIRCIOLH.js +145 -0
- package/dist/chunk-WIRCIOLH.js.map +1 -0
- package/dist/chunk-XAJ3KCC4.js +116 -0
- package/dist/chunk-XAJ3KCC4.js.map +1 -0
- package/dist/chunk-XC6BQ3RN.js +92 -0
- package/dist/chunk-XC6BQ3RN.js.map +1 -0
- package/dist/chunk-XLLYNNC6.js +89 -0
- package/dist/chunk-XLLYNNC6.js.map +1 -0
- package/dist/chunk-XR4ZJDOV.js +15 -0
- package/dist/chunk-XR4ZJDOV.js.map +1 -0
- package/dist/context-BgYUymEO.d.ts +163 -0
- package/dist/frame-I7_xYGy5.d.ts +45 -0
- package/dist/full-S2MBPEEP.js +11 -0
- package/dist/full-S2MBPEEP.js.map +1 -0
- package/dist/funnel-QU5ZPC52.js +13 -0
- package/dist/funnel-QU5ZPC52.js.map +1 -0
- package/dist/funnel.d.ts +26 -0
- package/dist/funnel.js +13 -0
- package/dist/funnel.js.map +1 -0
- package/dist/gauge.d.ts +38 -0
- package/dist/gauge.js +12 -0
- package/dist/gauge.js.map +1 -0
- package/dist/geo.d.ts +37 -0
- package/dist/geo.js +13 -0
- package/dist/geo.js.map +1 -0
- package/dist/globe.d.ts +36 -0
- package/dist/globe.js +12 -0
- package/dist/globe.js.map +1 -0
- package/dist/heatmap-JWQOKUGM.js +13 -0
- package/dist/heatmap-JWQOKUGM.js.map +1 -0
- package/dist/heatmap.d.ts +47 -0
- package/dist/heatmap.js +15 -0
- package/dist/heatmap.js.map +1 -0
- package/dist/host-_F8RgiIz.d.ts +15 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +101 -0
- package/dist/index.js.map +1 -0
- package/dist/line.d.ts +25 -0
- package/dist/line.js +18 -0
- package/dist/line.js.map +1 -0
- package/dist/native.d.ts +300 -0
- package/dist/native.js +875 -0
- package/dist/native.js.map +1 -0
- package/dist/pie.d.ts +37 -0
- package/dist/pie.js +16 -0
- package/dist/pie.js.map +1 -0
- package/dist/provider.d.ts +73 -0
- package/dist/provider.js +24 -0
- package/dist/provider.js.map +1 -0
- package/dist/radar-75GRJ2IK.js +13 -0
- package/dist/radar-75GRJ2IK.js.map +1 -0
- package/dist/radar.d.ts +22 -0
- package/dist/radar.js +13 -0
- package/dist/radar.js.map +1 -0
- package/dist/sankey-XQTX2EG6.js +13 -0
- package/dist/sankey-XQTX2EG6.js.map +1 -0
- package/dist/sankey.d.ts +28 -0
- package/dist/sankey.js +13 -0
- package/dist/sankey.js.map +1 -0
- package/dist/scatter-XSNG4OKD.js +13 -0
- package/dist/scatter-XSNG4OKD.js.map +1 -0
- package/dist/scatter.d.ts +41 -0
- package/dist/scatter.js +15 -0
- package/dist/scatter.js.map +1 -0
- package/dist/sparkline.d.ts +26 -0
- package/dist/sparkline.js +15 -0
- package/dist/sparkline.js.map +1 -0
- package/dist/svg-BJUHYX3B.js +14 -0
- package/dist/svg-BJUHYX3B.js.map +1 -0
- package/dist/treemap-OMGGGB5U.js +13 -0
- package/dist/treemap-OMGGGB5U.js.map +1 -0
- package/dist/treemap.d.ts +24 -0
- package/dist/treemap.js +14 -0
- package/dist/treemap.js.map +1 -0
- package/dist/world-110m-DVFWXS42.js +18 -0
- package/dist/world-110m-DVFWXS42.js.map +1 -0
- package/package.json +518 -3
- package/registry/area-chart.json +784 -0
- package/registry/bar-chart.json +783 -0
- package/registry/calendar-heatmap.json +459 -0
- package/registry/candlestick.json +552 -0
- package/registry/chart.json +440 -0
- package/registry/charts-provider.json +190 -0
- package/registry/examples/area-chart/credits-usage.d.ts +4 -0
- package/registry/examples/area-chart/credits-usage.js +38 -0
- package/registry/examples/area-chart/credits-usage.tsx +32 -0
- package/registry/examples/area-chart/native/credits-usage.d.ts +4 -0
- package/registry/examples/area-chart/native/credits-usage.dark.png +0 -0
- package/registry/examples/area-chart/native/credits-usage.js +33 -0
- package/registry/examples/area-chart/native/credits-usage.light.png +0 -0
- package/registry/examples/area-chart/native/credits-usage.tsx +27 -0
- package/registry/examples/area-chart/storage.d.ts +4 -0
- package/registry/examples/area-chart/storage.js +27 -0
- package/registry/examples/area-chart/storage.tsx +21 -0
- package/registry/examples/bar-chart/jobs-by-status.d.ts +4 -0
- package/registry/examples/bar-chart/jobs-by-status.js +37 -0
- package/registry/examples/bar-chart/jobs-by-status.tsx +31 -0
- package/registry/examples/bar-chart/native/jobs-by-status.d.ts +4 -0
- package/registry/examples/bar-chart/native/jobs-by-status.dark.png +0 -0
- package/registry/examples/bar-chart/native/jobs-by-status.js +32 -0
- package/registry/examples/bar-chart/native/jobs-by-status.light.png +0 -0
- package/registry/examples/bar-chart/native/jobs-by-status.tsx +26 -0
- package/registry/examples/bar-chart/plans-by-quarter.d.ts +4 -0
- package/registry/examples/bar-chart/plans-by-quarter.js +31 -0
- package/registry/examples/bar-chart/plans-by-quarter.tsx +26 -0
- package/registry/examples/bar-chart/top-supporters.d.ts +4 -0
- package/registry/examples/bar-chart/top-supporters.js +32 -0
- package/registry/examples/bar-chart/top-supporters.tsx +27 -0
- package/registry/examples/calendar-heatmap/publishing.d.ts +4 -0
- package/registry/examples/calendar-heatmap/publishing.js +28 -0
- package/registry/examples/calendar-heatmap/publishing.tsx +23 -0
- package/registry/examples/candlestick/auction-bids.d.ts +4 -0
- package/registry/examples/candlestick/auction-bids.js +37 -0
- package/registry/examples/candlestick/auction-bids.tsx +32 -0
- package/registry/examples/chart/polar-uploads.d.ts +4 -0
- package/registry/examples/chart/polar-uploads.js +34 -0
- package/registry/examples/chart/polar-uploads.tsx +30 -0
- package/registry/examples/charts-provider/french-orazaka.d.ts +4 -0
- package/registry/examples/charts-provider/french-orazaka.js +26 -0
- package/registry/examples/charts-provider/french-orazaka.tsx +22 -0
- package/registry/examples/charts-provider/native/french-orazaka.d.ts +4 -0
- package/registry/examples/charts-provider/native/french-orazaka.dark.png +0 -0
- package/registry/examples/charts-provider/native/french-orazaka.js +17 -0
- package/registry/examples/charts-provider/native/french-orazaka.light.png +0 -0
- package/registry/examples/charts-provider/native/french-orazaka.tsx +17 -0
- package/registry/examples/funnel/signup.d.ts +4 -0
- package/registry/examples/funnel/signup.js +30 -0
- package/registry/examples/funnel/signup.tsx +24 -0
- package/registry/examples/gauge/challenge-goal.d.ts +4 -0
- package/registry/examples/gauge/challenge-goal.js +24 -0
- package/registry/examples/gauge/challenge-goal.tsx +18 -0
- package/registry/examples/gauge/credits-quota.d.ts +4 -0
- package/registry/examples/gauge/credits-quota.js +26 -0
- package/registry/examples/gauge/credits-quota.tsx +19 -0
- package/registry/examples/gauge/native/credits-quota.d.ts +4 -0
- package/registry/examples/gauge/native/credits-quota.dark.png +0 -0
- package/registry/examples/gauge/native/credits-quota.js +25 -0
- package/registry/examples/gauge/native/credits-quota.light.png +0 -0
- package/registry/examples/gauge/native/credits-quota.tsx +18 -0
- package/registry/examples/geo-map/viewers.d.ts +4 -0
- package/registry/examples/geo-map/viewers.js +43 -0
- package/registry/examples/geo-map/viewers.tsx +29 -0
- package/registry/examples/globe/deployment-regions.d.ts +4 -0
- package/registry/examples/globe/deployment-regions.js +36 -0
- package/registry/examples/globe/deployment-regions.tsx +30 -0
- package/registry/examples/heatmap/upload-activity.d.ts +4 -0
- package/registry/examples/heatmap/upload-activity.js +30 -0
- package/registry/examples/heatmap/upload-activity.tsx +25 -0
- package/registry/examples/line-chart/creator-earnings.d.ts +4 -0
- package/registry/examples/line-chart/creator-earnings.js +35 -0
- package/registry/examples/line-chart/creator-earnings.tsx +30 -0
- package/registry/examples/line-chart/forecast.d.ts +4 -0
- package/registry/examples/line-chart/forecast.js +36 -0
- package/registry/examples/line-chart/forecast.tsx +30 -0
- package/registry/examples/line-chart/live-jobs.d.ts +4 -0
- package/registry/examples/line-chart/live-jobs.js +21 -0
- package/registry/examples/line-chart/live-jobs.tsx +23 -0
- package/registry/examples/line-chart/native/creator-earnings.d.ts +4 -0
- package/registry/examples/line-chart/native/creator-earnings.dark.png +0 -0
- package/registry/examples/line-chart/native/creator-earnings.js +32 -0
- package/registry/examples/line-chart/native/creator-earnings.light.png +0 -0
- package/registry/examples/line-chart/native/creator-earnings.tsx +26 -0
- package/registry/examples/line-chart/states.d.ts +4 -0
- package/registry/examples/line-chart/states.js +16 -0
- package/registry/examples/line-chart/states.tsx +13 -0
- package/registry/examples/pie-chart/credit-spend.d.ts +4 -0
- package/registry/examples/pie-chart/credit-spend.js +30 -0
- package/registry/examples/pie-chart/credit-spend.tsx +24 -0
- package/registry/examples/pie-chart/native/credit-spend.d.ts +4 -0
- package/registry/examples/pie-chart/native/credit-spend.dark.png +0 -0
- package/registry/examples/pie-chart/native/credit-spend.js +17 -0
- package/registry/examples/pie-chart/native/credit-spend.light.png +0 -0
- package/registry/examples/pie-chart/native/credit-spend.tsx +12 -0
- package/registry/examples/pie-chart/storage-by-kind.d.ts +4 -0
- package/registry/examples/pie-chart/storage-by-kind.js +31 -0
- package/registry/examples/pie-chart/storage-by-kind.tsx +26 -0
- package/registry/examples/radar-chart/model-comparison.d.ts +4 -0
- package/registry/examples/radar-chart/model-comparison.js +33 -0
- package/registry/examples/radar-chart/model-comparison.tsx +28 -0
- package/registry/examples/sankey/credit-flow.d.ts +4 -0
- package/registry/examples/sankey/credit-flow.js +37 -0
- package/registry/examples/sankey/credit-flow.tsx +32 -0
- package/registry/examples/scatter-chart/watch-time.d.ts +4 -0
- package/registry/examples/scatter-chart/watch-time.js +36 -0
- package/registry/examples/scatter-chart/watch-time.tsx +31 -0
- package/registry/examples/sparkline/bars.d.ts +4 -0
- package/registry/examples/sparkline/bars.js +12 -0
- package/registry/examples/sparkline/bars.tsx +7 -0
- package/registry/examples/sparkline/native/stat-trend.d.ts +4 -0
- package/registry/examples/sparkline/native/stat-trend.dark.png +0 -0
- package/registry/examples/sparkline/native/stat-trend.js +12 -0
- package/registry/examples/sparkline/native/stat-trend.light.png +0 -0
- package/registry/examples/sparkline/native/stat-trend.tsx +7 -0
- package/registry/examples/sparkline/stat-trend.d.ts +4 -0
- package/registry/examples/sparkline/stat-trend.js +18 -0
- package/registry/examples/sparkline/stat-trend.tsx +15 -0
- package/registry/examples/sparkline/table-rows.d.ts +4 -0
- package/registry/examples/sparkline/table-rows.js +23 -0
- package/registry/examples/sparkline/table-rows.tsx +26 -0
- package/registry/examples/treemap/storage.d.ts +4 -0
- package/registry/examples/treemap/storage.js +17 -0
- package/registry/examples/treemap/storage.tsx +13 -0
- package/registry/funnel.json +486 -0
- package/registry/gauge.json +599 -0
- package/registry/geo-map.json +483 -0
- package/registry/globe.json +468 -0
- package/registry/heatmap.json +530 -0
- package/registry/index.json +420 -0
- package/registry/line-chart.json +792 -0
- package/registry/pie-chart.json +1287 -0
- package/registry/radar-chart.json +458 -0
- package/registry/sankey.json +502 -0
- package/registry/scatter-chart.json +558 -0
- package/registry/sparkline.json +562 -0
- package/registry/treemap.json +431 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @krizaka/charts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Krizaka's data visualisation: typed, declarative React charts on the `--kz-*` tokens and the brand palettes, with what
|
|
4
|
+
chart libraries leave to you built in — a data table and a written summary in every chart, keyboard navigation,
|
|
5
|
+
loading / empty / error states, SSR without layout shift, export, thresholds, live data — and React Native for the
|
|
6
|
+
simple types.
|
|
7
|
+
|
|
8
|
+
**Documentation: [krizaka.com/docs/ui](https://www.krizaka.com/docs/ui)** (generated from this package's registry).
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @krizaka/charts
|
|
12
|
+
# React Native: npx expo install react-native-svg
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { LineChart } from "@krizaka/charts/line";
|
|
17
|
+
|
|
18
|
+
<LineChart
|
|
19
|
+
title="Earnings, last 6 months"
|
|
20
|
+
data={earnings} // [{ month: "2026-04", sales: 182000, tips: 21000 }, …] — cents
|
|
21
|
+
x="month"
|
|
22
|
+
series={[{ key: "sales", label: "Video sales" }, { key: "tips", label: "Tips" }]}
|
|
23
|
+
format={{ style: "money", currency: "EUR" }}
|
|
24
|
+
thresholds={[{ value: 250_000, label: "Payout threshold", tone: "success" }]}
|
|
25
|
+
locale="fr-FR"
|
|
26
|
+
exportable
|
|
27
|
+
/>;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| Entry | Charts | Engine |
|
|
31
|
+
| :-- | :-- | :-- |
|
|
32
|
+
| `@krizaka/charts/line` | `LineChart`, `AreaChart` | SVG, 13 kB |
|
|
33
|
+
| `@krizaka/charts/bar` | `BarChart` (grouped, stacked, horizontal) | SVG, 13 kB |
|
|
34
|
+
| `@krizaka/charts/pie` | `PieChart`, `DonutChart` | SVG, 9 kB |
|
|
35
|
+
| `@krizaka/charts/gauge` | `Gauge` | SVG, 8 kB |
|
|
36
|
+
| `@krizaka/charts/sparkline` | `Sparkline` | SVG, 10 kB |
|
|
37
|
+
| `@krizaka/charts/geo` | `GeoMap` | SVG (d3-geo) + the world on demand |
|
|
38
|
+
| `@krizaka/charts/globe` | `Globe3D` | SVG (orthographic, no WebGL) |
|
|
39
|
+
| `@krizaka/charts/radar` · `heatmap` · `sankey` · `funnel` · `candlestick` · `treemap` · `scatter` | `RadarChart`, `Heatmap`, `CalendarHeatmap`, `Sankey`, `Funnel`, `Candlestick`, `Treemap`, `ScatterChart` | ECharts, loaded when the chart nears the screen (~11 kB before) |
|
|
40
|
+
| `@krizaka/charts/chart` | `Chart` — any ECharts option, themed and framed | ECharts (`modules` to tree-shake) |
|
|
41
|
+
| `@krizaka/charts/provider` | `ChartsProvider` (locale, brand, words), `useSlidingWindow` | — |
|
|
42
|
+
| `@krizaka/charts/native` | `LineChart`, `AreaChart`, `BarChart`, `PieChart`, `DonutChart`, `Gauge`, `Sparkline` | react-native-svg |
|
|
43
|
+
|
|
44
|
+
Needs React 19 and the Krizaka tokens in the page (`@krizaka/tokens/tokens.css`, or `@krizaka/tailwind`); the
|
|
45
|
+
charts' own CSS is embedded. Themes follow `color-scheme` (`html.light`, `.theme-light`); brands follow a
|
|
46
|
+
`.brand-<id>` ancestor or `brand` (`krizaka`, `orazaka`, `orochia`).
|
|
47
|
+
|
|
48
|
+
Apache-2.0. The world map data is Natural Earth (public domain) through world-atlas (ISC).
|
package/dist/bar.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { C as CartesianProps } from './cartesian-BRhNQ3ib.js';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { g as Datum } from './context-BgYUymEO.js';
|
|
4
|
+
import './frame-I7_xYGy5.js';
|
|
5
|
+
|
|
6
|
+
interface BarChartProps<T extends Datum> extends CartesianProps<T> {
|
|
7
|
+
/** Stack the series in one bar per category (a total and its parts); default: grouped side by side. */
|
|
8
|
+
stacked?: boolean;
|
|
9
|
+
/** Bars grow to the right, the categories down the side: long labels, rankings. */
|
|
10
|
+
horizontal?: boolean;
|
|
11
|
+
/** Write each value at the tip of its bar (one series, up to 16 bars). Default true. */
|
|
12
|
+
valueLabels?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/** Compare amounts across categories: grouped, stacked or horizontal bars, each value at its tip. */
|
|
15
|
+
declare function BarChart<T extends Datum>({ stacked, horizontal, valueLabels, ...props }: BarChartProps<T>): react.JSX.Element;
|
|
16
|
+
|
|
17
|
+
export { BarChart, type BarChartProps, CartesianProps };
|
package/dist/bar.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
BarChart
|
|
4
|
+
} from "./chunk-XR4ZJDOV.js";
|
|
5
|
+
import "./chunk-UNK4MJVG.js";
|
|
6
|
+
import "./chunk-BISL7DYW.js";
|
|
7
|
+
import "./chunk-ANUCSRUN.js";
|
|
8
|
+
import "./chunk-OB5EFDDH.js";
|
|
9
|
+
import "./chunk-W5FX4TU3.js";
|
|
10
|
+
import "./chunk-XLLYNNC6.js";
|
|
11
|
+
import "./chunk-DWJPPEMC.js";
|
|
12
|
+
import "./chunk-3CJHBJXA.js";
|
|
13
|
+
export {
|
|
14
|
+
BarChart
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=bar.js.map
|
package/dist/bar.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/echarts/engines/candlestick.ts
|
|
4
|
+
import { BarChart, CandlestickChart } from "echarts/charts";
|
|
5
|
+
import { DataZoomComponent, GridComponent, MarkLineComponent, TooltipComponent } from "echarts/components";
|
|
6
|
+
import { use as register } from "echarts/core";
|
|
7
|
+
function install() {
|
|
8
|
+
register([CandlestickChart, BarChart, GridComponent, DataZoomComponent, MarkLineComponent, TooltipComponent]);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
install
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=candlestick-IG626XL4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/echarts/engines/candlestick.ts"],"sourcesContent":["import { BarChart, CandlestickChart } from \"echarts/charts\";\nimport { DataZoomComponent, GridComponent, MarkLineComponent, TooltipComponent } from \"echarts/components\";\nimport { use as register } from \"echarts/core\";\n\n/**\n * Registers what this chart needs. A function, not a side effect of the import: the package is `sideEffects: false`,\n * and a bundler drops a module imported only for its side effects.\n */\nexport function install(): void {\n register([CandlestickChart, BarChart, GridComponent, DataZoomComponent, MarkLineComponent, TooltipComponent]);\n}\n"],"mappings":";;;AAAA,SAAS,UAAU,wBAAwB;AAC3C,SAAS,mBAAmB,eAAe,mBAAmB,wBAAwB;AACtF,SAAS,OAAO,gBAAgB;AAMzB,SAAS,UAAgB;AAC9B,WAAS,CAAC,kBAAkB,UAAU,eAAe,mBAAmB,mBAAmB,gBAAgB,CAAC;AAC9G;","names":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { g as Datum, A as Accessor, V as ValueFormat, C as CategoryFormat, T as Threshold } from './context-BgYUymEO.js';
|
|
3
|
+
import { E as EngineProps } from './host-_F8RgiIz.js';
|
|
4
|
+
import { C as ChartFrameProps } from './frame-I7_xYGy5.js';
|
|
5
|
+
|
|
6
|
+
interface CandlestickProps<T extends Datum> extends ChartFrameProps, EngineProps {
|
|
7
|
+
/** One row per period, oldest first. */
|
|
8
|
+
data: readonly T[];
|
|
9
|
+
/** The field of the period (a date, an hour). */
|
|
10
|
+
x: Accessor<T, unknown>;
|
|
11
|
+
/** The field of the price at the start of the period. */
|
|
12
|
+
open: Accessor<T, number>;
|
|
13
|
+
/** The field of the highest price of the period. */
|
|
14
|
+
high: Accessor<T, number>;
|
|
15
|
+
/** The field of the lowest price of the period. */
|
|
16
|
+
low: Accessor<T, number>;
|
|
17
|
+
/** The field of the price at the end of the period. */
|
|
18
|
+
close: Accessor<T, number>;
|
|
19
|
+
/** The field of the volume: drawn in its own panel under the candles. */
|
|
20
|
+
volume?: Accessor<T, number>;
|
|
21
|
+
/** How the prices and the volume are written. */
|
|
22
|
+
format?: ValueFormat;
|
|
23
|
+
/** How the volume is written. Default `"compact"`. */
|
|
24
|
+
volumeFormat?: ValueFormat;
|
|
25
|
+
/** How the periods are written. */
|
|
26
|
+
xFormat?: CategoryFormat;
|
|
27
|
+
/** Horizontal lines: a reserve price, a target. */
|
|
28
|
+
thresholds?: readonly Threshold[];
|
|
29
|
+
/** Zoom with the wheel and drag to pan. Default true from 40 periods. */
|
|
30
|
+
zoom?: boolean;
|
|
31
|
+
/** The words of the table's columns and the tooltip's rows. */
|
|
32
|
+
columnLabels?: {
|
|
33
|
+
readonly open: string;
|
|
34
|
+
readonly high: string;
|
|
35
|
+
readonly low: string;
|
|
36
|
+
readonly close: string;
|
|
37
|
+
readonly volume: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
declare function Candlestick<T extends Datum>(props: CandlestickProps<T>): react.JSX.Element;
|
|
41
|
+
|
|
42
|
+
export { Candlestick, type CandlestickProps };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Candlestick
|
|
4
|
+
} from "./chunk-OER6ETT4.js";
|
|
5
|
+
import "./chunk-I5QUZVU2.js";
|
|
6
|
+
import "./chunk-W5FX4TU3.js";
|
|
7
|
+
import "./chunk-XLLYNNC6.js";
|
|
8
|
+
import "./chunk-DWJPPEMC.js";
|
|
9
|
+
import "./chunk-3CJHBJXA.js";
|
|
10
|
+
export {
|
|
11
|
+
Candlestick
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=candlestick.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/echarts/engines/canvas.ts
|
|
4
|
+
import { use as register } from "echarts/core";
|
|
5
|
+
import { CanvasRenderer } from "echarts/renderers";
|
|
6
|
+
import { init } from "echarts/core";
|
|
7
|
+
function install() {
|
|
8
|
+
register([CanvasRenderer]);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
init,
|
|
12
|
+
install
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=canvas-4MSYDVFO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/echarts/engines/canvas.ts"],"sourcesContent":["// The canvas renderer: for large volumes (tens of thousands of points), where one DOM node per mark would be too many.\nimport { use as register } from \"echarts/core\";\nimport { CanvasRenderer } from \"echarts/renderers\";\n\n/**\n * Registers what this chart needs. A function, not a side effect of the import: the package is `sideEffects: false`,\n * and a bundler drops a module imported only for its side effects.\n */\nexport function install(): void {\n register([CanvasRenderer]);\n}\nexport { init } from \"echarts/core\";\n"],"mappings":";;;AACA,SAAS,OAAO,gBAAgB;AAChC,SAAS,sBAAsB;AAS/B,SAAS,YAAY;AAHd,SAAS,UAAgB;AAC9B,WAAS,CAAC,cAAc,CAAC;AAC3B;","names":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { g as Datum, A as Accessor, h as SeriesSpec, V as ValueFormat, C as CategoryFormat, T as Threshold, M as Marker } from './context-BgYUymEO.js';
|
|
2
|
+
import { C as ChartFrameProps } from './frame-I7_xYGy5.js';
|
|
3
|
+
|
|
4
|
+
/** What every cartesian chart takes: rows, the category field, the series, the formats, thresholds and markers. */
|
|
5
|
+
interface CartesianProps<T extends Datum> extends ChartFrameProps {
|
|
6
|
+
/** The rows, in the order of the x axis. */
|
|
7
|
+
data: readonly T[];
|
|
8
|
+
/** The field (or function) of the category: a month (`"2026-04"`), a day, a label. Default: the row's position. */
|
|
9
|
+
x?: Accessor<T, unknown>;
|
|
10
|
+
/** A single series: its field. Use `series` for several. */
|
|
11
|
+
y?: Accessor<T, number | null | undefined>;
|
|
12
|
+
/** The name of the single `y` series (legend, tooltip, table). Default: the field's name. */
|
|
13
|
+
yLabel?: string;
|
|
14
|
+
/** The series to draw, each with its field and its name; the palette follows their order. */
|
|
15
|
+
series?: readonly SeriesSpec<T>[];
|
|
16
|
+
/** How the values are written (axis, tooltip, table, summary). Default `"number"`. */
|
|
17
|
+
format?: ValueFormat;
|
|
18
|
+
/** How the categories are written. Default: dates by their precision (`2026-04` → `Apr 2026`), text as is. */
|
|
19
|
+
xFormat?: CategoryFormat;
|
|
20
|
+
/** The header of the categories in the data table (`Month`). */
|
|
21
|
+
xLabel?: string;
|
|
22
|
+
/** Horizontal lines at a value: a goal, a payout threshold. */
|
|
23
|
+
thresholds?: readonly Threshold[];
|
|
24
|
+
/** Vertical markers at a category: a launch, an incident. */
|
|
25
|
+
markers?: readonly Marker[];
|
|
26
|
+
/** Show the legend (from two series). Default true. */
|
|
27
|
+
legend?: boolean;
|
|
28
|
+
/** Start the value axis at zero. Default: true for bars and areas; for lines, unless the values sit far from zero. */
|
|
29
|
+
zero?: boolean;
|
|
30
|
+
/** Called with the row when a point or a bar is clicked (or Enter is pressed on it). */
|
|
31
|
+
onSelect?: (datum: T, index: number) => void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type { CartesianProps as C };
|
package/dist/chart.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { E as EngineProps, W as WalkItem } from './host-_F8RgiIz.js';
|
|
2
|
+
import { C as ChartFrameProps, T as TableModel } from './frame-I7_xYGy5.js';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { EChartsCoreOption } from 'echarts/core';
|
|
5
|
+
import './context-BgYUymEO.js';
|
|
6
|
+
|
|
7
|
+
interface ResolvedTheme {
|
|
8
|
+
readonly text: string;
|
|
9
|
+
readonly text2: string;
|
|
10
|
+
readonly text3: string;
|
|
11
|
+
readonly grid: string;
|
|
12
|
+
readonly axis: string;
|
|
13
|
+
readonly surface: string;
|
|
14
|
+
readonly surface2: string;
|
|
15
|
+
readonly surface3: string;
|
|
16
|
+
readonly border: string;
|
|
17
|
+
readonly accent: string;
|
|
18
|
+
readonly success: string;
|
|
19
|
+
readonly warning: string;
|
|
20
|
+
readonly danger: string;
|
|
21
|
+
readonly info: string;
|
|
22
|
+
/** The categorical palette, slot 1 first. */
|
|
23
|
+
readonly palette: readonly string[];
|
|
24
|
+
/** A sequential ramp of the brand hue (5 steps, near the surface → full). */
|
|
25
|
+
readonly ramp: readonly string[];
|
|
26
|
+
/** The diverging poles. */
|
|
27
|
+
readonly low: string;
|
|
28
|
+
readonly high: string;
|
|
29
|
+
readonly font: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface ChartProps extends ChartFrameProps, EngineProps {
|
|
33
|
+
/** The ECharts option, or a function of the resolved theme (colours as plain strings, the palette, the ramp). */
|
|
34
|
+
option: EChartsCoreOption | ((theme: ResolvedTheme, size: {
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
}) => EChartsCoreOption);
|
|
38
|
+
/**
|
|
39
|
+
* Registers what the option needs, from `echarts/charts` and `echarts/components` (tree-shaken):
|
|
40
|
+
* `() => import("./my-echarts")` where that module calls `use([...])`. Default: all of ECharts (~380 kB gzip).
|
|
41
|
+
*/
|
|
42
|
+
modules?: () => Promise<unknown>;
|
|
43
|
+
/** The written summary: an option says nothing on its own. */
|
|
44
|
+
summaryText: string;
|
|
45
|
+
/** The data as a table: the alternative of every chart. */
|
|
46
|
+
table: TableModel;
|
|
47
|
+
/** What the arrow keys walk (series and data indexes, and what each one says). */
|
|
48
|
+
items?: readonly WalkItem[];
|
|
49
|
+
/** A click (or Enter) on a data item. */
|
|
50
|
+
onItem?: (item: {
|
|
51
|
+
seriesIndex: number;
|
|
52
|
+
dataIndex: number;
|
|
53
|
+
}) => void;
|
|
54
|
+
}
|
|
55
|
+
/** Any ECharts option, themed and framed like the typed charts. Memoise `option` when it is a function. */
|
|
56
|
+
declare function Chart({ option, modules, summaryText, table, items, onItem, ...frame }: ChartProps): react.JSX.Element;
|
|
57
|
+
|
|
58
|
+
export { Chart, type ChartProps, type ResolvedTheme, TableModel, WalkItem };
|
package/dist/chart.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|