@unovis/ts
TypeScript icon, indicating that this package has built-in type declarations

1.5.0-beta.0 • Public • Published

cover

🟨 Unovis is a modular data visualization framework for React, Angular, Svelte, and vanilla TypeScript or JavaScript.

@unovis/ts is the main package of Unovis. It contains the actual source code of all the components and can be use in a pure TypeScript or JavaScript app.

Learn more about Unovis on our website unovis.dev

Installation

npm install -P @unovis/ts

Quick Start

TypeScript

import { Axis, Line, XYContainer } from '@unovis/ts'

type DataRecord = { x: number; y: number }

const data: DataRecord[] = [
  { x: 0, y: 0 },
  { x: 1, y: 2 },
  { x: 2, y: 1 },
]

const line = new Line<DataRecord>({
  x: d => d.x,
  y: d => d.y,
})

const container = document.getElementById('vis-container')
const chart = new XYContainer(container, {
  components: [line],
  xAxis: new Axis(),
  yAxis: new Axis(),
}, data)

JavaScript

import { Axis, Line, XYContainer } from '@unovis/ts'

const data = [
  { x: 0, y: 0 },
  { x: 1, y: 2 },
  { x: 2, y: 1 },
]

const line = new Line({
  x: d => d.x,
  y: d => d.y,
})

const container = document.getElementById('vis-container')
const chart = new XYContainer(container, {
  components: [line],
  xAxis: new Axis(),
  yAxis: new Axis(),
}, data)

Documentation

https://unovis.dev/docs

Examples

https://unovis.dev/gallery

License

Apache-2.0

Package Sidebar

Install

npm i @unovis/ts

Homepage

unovis.dev

Weekly Downloads

20,921

Version

1.5.0-beta.0

License

Apache-2.0

Unpacked Size

9.87 MB

Total Files

568

Last publish

Collaborators

  • curran
  • lee00678
  • rmauer
  • rebeccabol
  • caabernathy
  • nikita-rokotyan-f5
  • rokotyan