diff --git a/site/content/assets/sidebar.json b/site/content/assets/sidebar.json index 2b4babb8..bd5d6eb0 100644 --- a/site/content/assets/sidebar.json +++ b/site/content/assets/sidebar.json @@ -16,7 +16,8 @@ "links": [ { "title": "Analytics", "href": "/howto/analytics" }, { "title": "Page Metadata", "href": "/howto/page-metadata" }, - { "title": "Sitemaps", "href": "/howto/sitemaps" } + { "title": "Sitemaps", "href": "/howto/sitemaps" }, + { "title": "Data Rich Documents", "href": "/howto/drd" } ] } ] diff --git a/site/content/howto/drd.md b/site/content/howto/drd.md new file mode 100644 index 00000000..bede788c --- /dev/null +++ b/site/content/howto/drd.md @@ -0,0 +1,181 @@ +# How to have data rich documents with charts and tables? + + +## Tables + +- You can use the table component +![](https://hackmd.io/_uploads/HyrtR_mS2.png) + +- It can be used with raw data +``` + +``` +- It can be used with a raw csv string +![](https://hackmd.io/_uploads/SJglXtQrh.png) +``` +
+``` +- It can be used with a URL string +![](https://hackmd.io/_uploads/S19GXYXBn.png) +``` +
+``` + +## Charts + +### Linecharts + +- You can add LineCharts passing in a array of data +![](https://hackmd.io/_uploads/S1TBXYXH3.png) +``` + +``` +- You can pass a URL +![](https://hackmd.io/_uploads/SkHd7KXS3.png) +``` + +``` + +### Vega Charts + +You can add Vega charts with the `` component like this, it supports all the Vega specification: +![](https://hackmd.io/_uploads/ryN5mYmSh.png) +``` + + +``` + +### VegaLite Charts + +- You can add VegaLite charts with the `` component like this, it supports all the VegaLite specification: +![](https://hackmd.io/_uploads/rJ2nQt7B3.png) +``` + +```