#Plotissimo – design principles
The principles Plotissimo is built on, and what you can rely on when you use it.
#Simple to use
- Plain JavaScript, no dependencies. One script and one stylesheet, or an ES module from npm. It works with any framework or none.
- Data and options in, a chart out. Plotissimo knows nothing about your application: links, dialogs and actions are your own functions, called from events and popups.
- Sensible defaults. A chart needs only its data; every option has a default that suits most cases, and options you give always win.
#Styled with CSS
- Colours, fonts and lines come from the stylesheet, not from the code. Themes (light, dark, minimal, your own) are CSS; every part of a chart has a fixed class name you can style.
- Scalable everywhere. Charts are SVG: sharp at any size, they fill their container and follow it when it resizes.
#Accessible and safe
- For everyone. A description for screen readers made from the data, the data as tables, keyboard access to everything you can click, colour-blind-safe colours, and no movement for people who ask for less motion.
- Text is text. Names and labels from your data are never treated as code or markup.
- Private. The library does not contact any server: the licence key is checked in the browser, and nothing about your site, users or data is sent anywhere.
#Reliable
- A stable API. From 1.0, the chart classes, options, events, methods and class names in the user guide do not change within a major version. Renamed options keep working with a console warning until the next major version.
- Tested. Every release is checked by unit tests, by the type definitions against example code, and by screenshots of every example page.