Flexible, straightforward charts at the speed of data.
- If you're looking for package specific README with see the
/packagesdirectory. - If you're looking for the "how-to" for
@jgmccheck out the Docs Website
More links:
- Chart Types
- Bar chart
- Bar chart stacked
- Line chart
- Styling options
- Fill, stroke, and more
- Built-in alternating colors & gradient fills
- Placement options (which edge the chart data protrudes from)
- Class names attachable to various SVG element outputs
- Output sizing
- Output viewbox sizing
- Fill, stroke, and more
- Labels
- Data labels
- Literal, percentage, images
- Dataset labels
- Data labels
- SSR!
- If called in a server environment will draw on the single dependency of this project
linkedomto build SVG elements, otherwise will use available DOM APIs.
- If called in a server environment will draw on the single dependency of this project
ToDo!
This project is powered by Deno, which has a lot of really convenient things to speed up development.
That being said there are a couple dev dependencies!
- The Deno runtime which you can find instructions for installing here
- watchexec
- This is for running both unit tests & the gallery at the same time, and re-run on change. This is useful as tests should be passing, but also when working on charts the visual output is critical. The gallery builds all charts specified at the end of test files & spits them out locally in a super fast easy to view webpage.
- Deno's task runner provides the
recursiveflag which is awesome as it enables running multiple projects at once (tests & gallery here) but the--watchflag seemed to not pick up changes made to the gallery & so instead of toiling with it I just settled on usingwatchexecas it was an easy fix and has potential other useful functionality.
NEEDS UPDATING!
toomanycharts
├─ tests
│ └─ speed
├─ src
│ ├─ utils
│ ├─ math
│ └─ creating
├─ scripts
├─ extras
├─ e2e
│ ├─ test-vanilla-ts-anim
│ │ ├─ vitest
│ │ │ ├─ Basic
│ │ │ └─ BasicAnim
│ │ ├─ public
│ │ └─ src
│ │ └─ scripts
│ ├─ gallery
│ │ └─ out
│ └─ test-svelte-ts
│ ├─ vitest-threebar
│ │ ├─ threebarhorizontal
│ │ └─ threebarvertical
│ ├─ src
│ │ ├─ lib
│ │ └─ assets
│ └─ public
└─ docs
NEEDS UPDATING!
/tests- Deno powered unit testing!
- Gallery charts also supplied in each
.test.tsfile. - docs here
/speed- Tests for analyzing speed!
- These are run via the deno
benchcommand. (e.g. deno benchtests/speed/barchart_granular_incr.bench.ts)
/src- Source dir! files here are for top-level package exports, aka what users would import from the package.
/creating- Functionality pertaining primarily to actual DOM creation
/math- Functionality pertaining primarily to math operations
/utils- Miscellaneous functionality
/scripts- Currently houses the file used to publish a new version of the package to npm
/extras- Mainly holding images for markdown referencing.
- Also can contain other extra things not necessarily critical to lib!
/e2e- End to end testing! In the future I'd like to have a folder for each major framework & other places where this library could be used where example usage can be fully testing in isolated fresh environments.
- Currently mainly utilizing the gallery
/gallery- Small sub-project, the earlier
.test.tsfiles each utilize a function that spits out a templatedhtmlfile. Thisgalleryproject then serves those locally, in a live-updating way. - Allows for rapid development & visual testing.
app.cssis a basic shared stylesheet used by the test pages to neatly display the created charts, and their names if they have one, regardless of the number of charts.test.jpgis a test image used in testing of image labels.
- Small sub-project, the earlier
/test-svelte-ts- Example svelte + typescript project setup using vite.
- Draws from a local build of the library for testing (installed via
pnpm install ../../npmafter running build script locally.)
/test-vanilla-ts-anim- Example vanilla typescript project setup using vite.
- Draws from a local build of the library for testing (installed via
pnpm install ../../npmafter running build script locally.) - Build is used in documentation.
/docs- Deployed build of documentation website.
- Managed in separate repo
- Powered by fumadocs

