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/SUMMARY.md | 1 + src/web/README.md | 1 + src/web/chartjs.md | 10 ++++ src/web/src/chartjs-ext-tooltip.html | 101 +++++++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 src/web/chartjs.md create mode 100644 src/web/src/chartjs-ext-tooltip.html (limited to 'src') diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 8b9fb5c..3624108 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -64,6 +64,7 @@ - [Web](./web/README.md) - [html](./web/html.md) + - [chartjs](./web/chartjs.md) - [Arch](./arch/README.md) - [x86_64](./arch/x86_64.md) 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