From 71f731ca0675b19562221233e9a30ffcad0107d0 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 30 Oct 2022 16:22:06 +0100 Subject: web: added minimal chartjs example with external tooltip to render custom html --- src/web/README.md | 1 + src/web/chartjs.md | 10 ++++ src/web/src/chartjs-ext-tooltip.html | 101 +++++++++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 src/web/chartjs.md create mode 100644 src/web/src/chartjs-ext-tooltip.html (limited to 'src/web') diff --git a/src/web/README.md b/src/web/README.md index f208afb..e189f9e 100644 --- a/src/web/README.md +++ b/src/web/README.md @@ -1,3 +1,4 @@ # Web - [html](./html.md) +- [chartjs](./chartjs.md) diff --git a/src/web/chartjs.md b/src/web/chartjs.md new file mode 100644 index 0000000..36b621d --- /dev/null +++ b/src/web/chartjs.md @@ -0,0 +1,10 @@ +# Chart.js + +## Minimal example with *external* tooltips + +[Rendered html](src/chartjs-ext-tooltip.html) +```html +{{#include src/chartjs-ext-tooltip.html:3: }} +``` + +[chartjs]: https://www.chartjs.org diff --git a/src/web/src/chartjs-ext-tooltip.html b/src/web/src/chartjs-ext-tooltip.html new file mode 100644 index 0000000..b7358bb --- /dev/null +++ b/src/web/src/chartjs-ext-tooltip.html @@ -0,0 +1,101 @@ + + + + + -- cgit v1.2.3