zengeld-canvas 0.1.6 → 0.1.8
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 -1
- package/package.json +1 -1
- package/zengeld_canvas_wasm.d.ts +908 -1
- package/zengeld_canvas_wasm.js +1745 -35
- package/zengeld_canvas_wasm_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -28,9 +28,14 @@ import init, { Chart, JsBar } from 'zengeld-canvas';
|
|
|
28
28
|
async function main() {
|
|
29
29
|
await init();
|
|
30
30
|
|
|
31
|
+
// Create sample OHLCV data
|
|
32
|
+
const bars = [
|
|
33
|
+
new JsBar(1703721600n, 100.0, 105.0, 98.0, 103.0, 1000.0)
|
|
34
|
+
];
|
|
35
|
+
|
|
31
36
|
// Create chart
|
|
32
37
|
const chart = new Chart(800, 600);
|
|
33
|
-
chart.
|
|
38
|
+
chart.setBars(bars);
|
|
34
39
|
chart.candlesticks();
|
|
35
40
|
chart.sma(20, "#2196F3");
|
|
36
41
|
|
package/package.json
CHANGED