@qfo/qfchart 0.5.2 → 0.5.7
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 +6 -2
- package/dist/index.d.ts +8 -1
- package/dist/qfchart.min.browser.js +14 -86
- package/dist/qfchart.min.es.js +37 -0
- package/package.json +15 -5
- package/src/QFChart.ts +20 -2
- package/src/components/SeriesBuilder.ts +268 -1
- package/src/types.ts +8 -1
package/README.md
CHANGED
|
@@ -49,19 +49,23 @@ Currently available plugins :
|
|
|
49
49
|
### Browser (UMD)
|
|
50
50
|
|
|
51
51
|
```html
|
|
52
|
+
<!-- 1. Include ECharts (Required) -->
|
|
53
|
+
<script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
|
|
54
|
+
|
|
55
|
+
<!-- 2. Include QFChart -->
|
|
52
56
|
<script src="https://cdn.jsdelivr.net/npm/@qfo/qfchart/dist/qfchart.min.browser.js"></script>
|
|
53
57
|
```
|
|
54
58
|
|
|
55
59
|
### NPM
|
|
56
60
|
|
|
57
61
|
```bash
|
|
58
|
-
npm install @qfo/qfchart
|
|
62
|
+
npm install @qfo/qfchart echarts
|
|
59
63
|
```
|
|
60
64
|
|
|
61
65
|
### Yarn
|
|
62
66
|
|
|
63
67
|
```bash
|
|
64
|
-
yarn add @qfo/qfchart
|
|
68
|
+
yarn add @qfo/qfchart echarts
|
|
65
69
|
```
|
|
66
70
|
|
|
67
71
|
## 🚀 Quick Start
|
package/dist/index.d.ts
CHANGED
|
@@ -26,13 +26,20 @@ interface IndicatorPoint {
|
|
|
26
26
|
offset?: number;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
type IndicatorStyle = 'line' | 'step' | 'columns' | 'histogram' | 'circles' | 'cross' | 'background';
|
|
29
|
+
type IndicatorStyle = 'line' | 'step' | 'columns' | 'histogram' | 'circles' | 'cross' | 'background' | 'shape';
|
|
30
30
|
interface IndicatorOptions {
|
|
31
31
|
style: IndicatorStyle;
|
|
32
32
|
color: string;
|
|
33
33
|
offset?: number;
|
|
34
34
|
linewidth?: number;
|
|
35
35
|
smooth?: boolean;
|
|
36
|
+
shape?: string;
|
|
37
|
+
size?: string;
|
|
38
|
+
text?: string;
|
|
39
|
+
textcolor?: string;
|
|
40
|
+
location?: string;
|
|
41
|
+
width?: number;
|
|
42
|
+
height?: number;
|
|
36
43
|
}
|
|
37
44
|
interface IndicatorPlot {
|
|
38
45
|
data: IndicatorPoint[];
|