Unovis

Modular data visualization framework for React, Angular, Svelte, and vanill...

README

https://user-images.githubusercontent.com/755708/205744216-5e9efd10-794b-4ce1-9aca-580c34fad193.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:

  1. ```bash
  2. npm install -P @unovis/ts @unovis/<react|angular|svelte>
  3. ```

Now you can import components and create your first chart! Here's how to build a simple line chart uising Unovis and React:

  1. ```tsx
  2. import React, { useCallback } from 'react'
  3. import { VisXYContainer, VisLine, VisAxis } from '@unovis/react'

  4. type DataRecord = { x: number; y: number }
  5. const data: DataRecord[] = [
  6.   { x: 0, y: 0 },
  7.   { x: 1, y: 2 },
  8.   { x: 2, y: 1 },
  9. ]

  10. export function BasicLineChart (): JSX.Element {
  11.   return (
  12.     <VisXYContainer data={data}>
  13.       <VisLine<DataRecord>
  14.         x={useCallback(d => d.x, [])}
  15.         y={useCallback(d => d.y, [])}
  16.       ></VisLine>
  17.       <VisAxis type="x"></VisAxis>
  18.       <VisAxis type="y"></VisAxis>
  19.     </VisXYContainer>
  20.   )
  21. }
  22. ```
Looking for Angular, Svelte, or TypeScript examples? Check out the Quick Start page on our website.

Examples and Documentation

Unovis Examples

📖 _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 package
packages/angular Angular components
packages/react React components
packages/svelte Svelte components
packages/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

Maintainers

[Nikita Rokotyan](https://github.com/rokotyan)[Rebecca Bol](https://github.com/reb-dev)

Contributors

[Olga Stukova](https://github.com/stukova)[Sumit Kumar](https://github.com/sumitkumar25)[Gaurav Mukherjee](https://github.com/gmfun)[Beverly Ackah](https://github.com/beverlyckh)[Dmitriy Gutman](https://github.com/DimamoN)

License

_Unovis_ is licensed under Apache-2.0