docums-charts-plugin
Docums plugin to create plots from data using the declarative vegalite syntax. This makes it easier to build reproducible reports.
đŸ‘‰ See it in action on the demo page
Includes supports for docurial theme features like instant loading and dark color themes.
Installation
Install the plugin using pip3:
pip3 install docums-charts-plugin
Next, add the following lines to your docums.yml:
plugins:
- search
- charts
extra_javascript:
- https://cdn.jsdelivr.net/npm/vega@5
- https://cdn.jsdelivr.net/npm/vega-lite@5
- https://cdn.jsdelivr.net/npm/vega-embed@6
markdown_extensions:
- pymdownx.superfences:
custom_fences:
- name: vegalite
class: vegalite
format: !!python/name:docums_charts_plugin.fences.fence_vegalite
If you have no
pluginsentry in your config file yet, you'll likely also want to add thesearchplugin. Docums enables it by default if there is nopluginsentry set.
Usage
You can insert any valid vegalite JSON into a markdown file using:
```vegalite
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "A simple bar chart with embedded data.",
"data": {
"values": [
{"a": "A", "b": 28}, {"a": "B", "b": 55}, {"a": "C", "b": 43},
{"a": "D", "b": 91}, {"a": "E", "b": 81}, {"a": "F", "b": 53},
{"a": "G", "b": 19}, {"a": "H", "b": 87}, {"a": "I", "b": 52}
]
},
"mark": "bar",
"encoding": {
"x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0}},
"y": {"field": "b", "type": "quantitative"}
}
}
```
See the vegalite editor for a range of examples you could copy-paste into your docums site
Documentation
See the documentation khanhduy1407.github.io/docums-charts-plugin for examples, use cases and options.
Metadata
Release files for docums-charts-plugin 0.0.6.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| docums-charts-plugin-0.0.6.2.tar.gz | 7.5 kB | Without provenance | Details |
Release files / docums-charts-plugin-0.0.6.2.tar.gz
| Download URL | docums-charts-plugin-0.0.6.2.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8788a5702186b1fa9bc1c6bf12c20d9d3f8153bca2383f1a8d3e45f348f3d379
|
|
BLAKE2b-256 checksum How to use checksums |
07a4ee334fc33a0175be13c15a5f6c705252aa0b9ab672097c44d9115b8fede4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4
|
Security for docums-charts-plugin 0.0.6.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.