Unovis - A Modular data visualization framework for React
Unovis.mp4
๐จ Unovis is a modular data visualization framework for React, Angular, Svelte, and vanilla TypeScript or JavaScript:
- ๐ ๐บ It has charts, maps, network graphs, and more!
- ๐ณ Tree-shakable and supports individual component imports to reduce your bundle size;
- ๐จ Highly customizable, thanks to the CSS-variables support.
Learn more about Unovis on unovis.dev
Quick Start
You can install the core of the library @unovis/ts
and framework-specific packages (if you use React, Angular, or Svelte) from NPM:
npm install -P @unovis/ts @unovis/<react|angular|svelte>
Now you can import components and create your first chart! Hereโs how to build a simple line chart uising Unovis and React:
import React, { useCallback } from 'react'
import { VisXYContainer, VisLine, VisAxis } from '@unovis/react'
type DataRecord = { x: number; y: number }
const data: DataRecord[] = [
{ x: 0, y: 0 },
{ x: 1, y: 2 },
{ x: 2, y: 1 },
]
export function BasicLineChart (): JSX.Element {
return (
<VisXYContainer data={data}>
<VisLine<DataRecord>
x={useCallback(d => d.x, [])}
y={useCallback(d => d.y, [])}
></VisLine>
<VisAxis type="x"></VisAxis>
<VisAxis type="y"></VisAxis>
</VisXYContainer>
)
}
Looking for Angular, Svelte, or TypeScript examples? Check out the Quick Start page on our website.
Examples and Documentation
๐ Unovis has an extensive documentation with code snippets for React, Angular, Svelte and TypeScript.
๐ผ Also thereโs a growing gallery of examples, from where you can copy the code over to your project or try it live on StackBlitz.
Repository structure
packages/ts
Core TypeScript packagepackages/angular
Angular componentspackages/react
React componentspackages/svelte
Svelte componentspackages/website
Website, docs and examples
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. For more information, please read CONTRIBUTING.
Maintainers
Contributors
License
Unovis is licensed under Apache-2.0