DataViz
DataViz helps you to create plots quickly. You declare what information (the data source) to display and how to display it (the plot type and style). DataViz tries to be as close as possible to the Vega-Lite visualization grammar. Available backends for plotting are matplotlib and bokeh.
Installation
Install via pip:
$ pip install dataviz
Example
To display a plot in Jupyter notebook:
import dataviz as dv
spec = {
"width": 600,
"height": 300,
"data": {
"values": [
{"time": "2021-01-01", "value": 28},
{"time": "2021-01-02", "value": 55},
{"time": "2021-01-03", "value": 43},
{"time": "2021-01-04", "value": 91},
{"time": "2021-01-05", "value": 81},
{"time": "2021-01-06", "value": 53},
]
},
"mark": "line",
"encoding": {
"x": {"field": "time", "type": "temporal"},
"y": {"field": "value", "type": "quantitative"},
"color": {"value": "red"},
}
}
fig = dv.figure(spec, 'matplotlib')
fig.show()
This will produce the following plot:
Contribute
- Issue Tracker: https://gitlab.com/librecube/lib/python-dataviz/-/issues
- Source Code: https://gitlab.com/librecube/lib/python-dataviz
To learn more on how to successfully contribute please read the contributing information in the LibreCube guidelines.
Support
If you are having issues, please let us know. Reach us at Matrix or via Email.
License
The project is licensed under the MIT license. See the LICENSE file for details.
Metadata
Release files for dataviz 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dataviz-1.1.0.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dataviz-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / dataviz-1.1.0.tar.gz
| Download URL | dataviz-1.1.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c9700cf589def8e24615a5b4178054dbc05fa3b8a11dbff163d0053e016db9a
|
|
BLAKE2b-256 checksum How to use checksums |
11481cf6c841afb0b134b2791f63572357a6669889e358e643cfc2ea53973f8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / dataviz-1.1.0-py3-none-any.whl
| Download URL | dataviz-1.1.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac7a904631c0c193f861be75112f30824345b1829b9b350a2811c0c61f14eaad
|
|
BLAKE2b-256 checksum How to use checksums |
14e4c83a7c682d9aad7880cdbd15a6659c93b3f5173c8220959b7f040e3283bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|