0.0.67 • Published 3 days ago

libchartium v0.0.67

Weekly downloads
-
License
-
Repository
-
Last release
3 days ago

📈 libchartium 🚀

The documentation is getting ready, please check back soon!

Installation

npm add libchartium unitlib fraction.js
# or
pnpm add libchartium unitlib fraction.js
# or
bun add libchartium unitlib fraction.js

You will also need to make sure that your bundler can import WebAssembly as ES modules according to the ESM integration proposal. For Vite that means you need to add vite-plugin-wasm, for Rollup it's @rollup/plugin-wasm. In Webpack you'll have to allow asyncWebAssembly in the config.

Example

<script lang="ts">
  import { ChartiumController, ChartComponent as Chart } from 'libchartium';
  const controller = new ChartiumController();

  const xs = Array.from(
    { length: numSteps },
    (_, index) => from + index * stepSize,
  );

  const ys = Array.from({ length: 100 }, (_, idx) => ({
    id: `trace_${idx}`,
    data: Float32Array.from(
      xs.map((x) => 100 + 100 * Math.sin((x / to) * 2 * Math.PI + idx)),
    ),
  }));

  const traces = controller.addFromColumnarArrayBuffers({
    x: {
      type: "f32",
      data: Float32Array.from(xs),
    },
    y: {
      type: "f32",
      columns: ys,
    },
    style: {
      "*": { width: 2 },
      sin: { color: "red" },
    },
  });
</script>
<Chart {controller} {traces} />
0.0.67

3 days ago

0.0.66

5 days ago

0.0.64

10 days ago

0.0.65

10 days ago

0.0.63

26 days ago

0.0.62

1 month ago

0.0.61

1 month ago

0.0.59

1 month ago

0.0.53

2 months ago

0.0.54

2 months ago

0.0.55

2 months ago

0.0.56

2 months ago

0.0.57

2 months ago

0.0.58

2 months ago

0.0.45

2 months ago

0.0.46

2 months ago

0.0.47

2 months ago

0.0.51

2 months ago

0.0.52

2 months ago

0.0.50

2 months ago

0.0.48

2 months ago

0.0.49

2 months ago

0.0.44

2 months ago

0.0.43

2 months ago

0.0.41

2 months ago

0.0.42

2 months ago

0.0.40

2 months ago

0.0.39

3 months ago

0.0.38

3 months ago

0.0.37

3 months ago

0.0.32

3 months ago

0.0.33

3 months ago

0.0.34

3 months ago

0.0.35

3 months ago

0.0.36

3 months ago

0.0.31

3 months ago

0.0.30

4 months ago

0.0.29

4 months ago

0.0.28

4 months ago

0.0.27

4 months ago

0.0.22

5 months ago

0.0.23

5 months ago

0.0.24

5 months ago

0.0.25

5 months ago

0.0.26

5 months ago

0.0.20

5 months ago

0.0.21

5 months ago

0.0.19

5 months ago

0.0.18

6 months ago

0.0.17

6 months ago

0.0.16

6 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago