Tutorial
Install
From npm
Section titled “From npm”npm install cseenThe library has no dependencies of its own. The docs site you are reading lives in site/ and has its own package.json, which nothing published depends on.
From source
Section titled “From source”To work on cseen itself, clone the repository and build it:
git clone https://github.com/M44F4/cseen.gitcd cseennpm installnpm run build # compiles to dist/Imports
Section titled “Imports”The core is small. Everything else is a pack that depends only on the core, and each pack has its own import path, so a page that only needs a monitor does not load the chart code.
import { Scene, box, mount } from 'cseen';import { monitor } from 'cseen/devices';import { bars } from 'cseen/charts';import 'cseen/cseen.css';The stylesheet is what makes figures follow your theme. Import it once.
Requirements
Section titled “Requirements”- A browser from the last few years. Series colours use relative colour syntax; older browsers fall back to a fixed accessible palette.
- TypeScript is optional. The library is typed and works from plain JavaScript.
- Any current Node for rendering on the server. The library is plain ES modules.
Next: your first scene.