From 1070b7b60308925b9c0f98075c354bb05b6f25ca Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 31 Aug 2024 00:26:17 +0200 Subject: web: add plotly example --- src/web/README.md | 1 + src/web/plotly.md | 16 ++++++++++++ src/web/src/plotly.html | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 src/web/plotly.md create mode 100644 src/web/src/plotly.html (limited to 'src/web') diff --git a/src/web/README.md b/src/web/README.md index acaa58d..0bbc856 100644 --- a/src/web/README.md +++ b/src/web/README.md @@ -3,3 +3,4 @@ - [html](./html.md) - [css](./css.md) - [chartjs](./chartjs.md) +- [plotly](./plotly.md) diff --git a/src/web/plotly.md b/src/web/plotly.md new file mode 100644 index 0000000..31736b7 --- /dev/null +++ b/src/web/plotly.md @@ -0,0 +1,16 @@ +# Plotly js + +Visualization library for javascript based on `d3`. + +Official documentation is [here][plotly-js]. + +## Line chart example +The following is an example for a *line* chart which contains many options that +I frequently use. It is bloated on purpose to document the options for myself. + +[Rendered html](src/plotly.html) +```html +{{#include src/plotly.html:3: }} +``` + +[plotly-js]: https://plotly.com/javascript/ diff --git a/src/web/src/plotly.html b/src/web/src/plotly.html new file mode 100644 index 0000000..c665c63 --- /dev/null +++ b/src/web/src/plotly.html @@ -0,0 +1,69 @@ + + +
+ + -- cgit v1.2.3