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/SUMMARY.md | 1 + src/web/README.md | 1 + src/web/plotly.md | 16 ++++++++++++ src/web/src/plotly.html | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 src/web/plotly.md create mode 100644 src/web/src/plotly.html (limited to 'src') diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 2861038..ea680ea 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -98,6 +98,7 @@ - [html](./web/html.md) - [css](./web/css.md) - [chartjs](./web/chartjs.md) + - [plotly](./web/plotly.md) - [Arch](./arch/README.md) - [x86_64](./arch/x86_64.md) 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