candleview 1.0.7 → 1.0.9

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 CHANGED
@@ -11,6 +11,16 @@ Chart engine in the financial field.
11
11
  <a href="./README_zh-CN.md">简体中文</a> | <a href="./README.md">English</a>
12
12
  </p>
13
13
 
14
+ # ⚙️ Install
15
+
16
+ ```bash
17
+ npm i candleview
18
+ ```
19
+
20
+ ```bash
21
+ yarn add candleview
22
+ ```
23
+
14
24
  # 🚀 Quick Start
15
25
 
16
26
  ```typescript
@@ -188,7 +198,6 @@ const App = () => {
188
198
  | `timeframe` | `string` | `'1d'` | Chart timeframe (e.g., '1m', '1h', '1d') | No |
189
199
  | `timezone` | `string` | `'Asia/Shanghai'` | Timezone for data display | No |
190
200
  | `data` | `ICandleViewDataPoint[]` | `[]` | K-line data array | No |
191
- | `jsonFilePath` | `string` | `''` | Path to JSON data file | No |
192
201
  | `url` | `string` | `''` | URL to fetch data from | No |
193
202
  | `markData` | `IStaticMarkData[]` | `[]` | Pre-drawn marks data | No |
194
203
  | `handleScreenshotCapture` | `(imageData: { dataUrl: string; blob: Blob; width: number; height: number; timestamp: number }) => void` | `undefined` | Callback for screenshot capture | No |
package/dist/index.d.ts CHANGED
@@ -96,7 +96,6 @@ declare interface CandleViewProps {
96
96
  timeframe?: string;
97
97
  timezone?: string;
98
98
  data?: ICandleViewDataPoint[];
99
- jsonFilePath?: string;
100
99
  url?: string;
101
100
  handleScreenshotCapture?: (imageData: {
102
101
  dataUrl: string;