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 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.bars(bars);
38
+ chart.setBars(bars);
34
39
  chart.candlesticks();
35
40
  chart.sma(20, "#2196F3");
36
41
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "zengeld"
6
6
  ],
7
7
  "description": "WebAssembly bindings for zengeld-canvas chart rendering engine",
8
- "version": "0.1.6",
8
+ "version": "0.1.8",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "homepage": "https://github.com/zengeld/zengeld-canvas",