https://github.com/pvarin/charta
https://github.com/pvarin/charta
asynchronous data-visualization
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pvarin/charta
- Owner: pvarin
- License: gpl-3.0
- Created: 2021-05-17T15:07:38.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-27T14:56:27.000Z (about 5 years ago)
- Last Synced: 2026-01-05T01:32:19.449Z (6 months ago)
- Topics: asynchronous, data-visualization
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# charta
A package for building realtime dashboards. Originally designed for monitoring the progress of optimization problems.
## Installation
charta is available on PyPi. You can
```
pip install charta
```
## Quickstart
Run the server in the terminal with:
```
charta-server
```
Then open your browser to [localhost:8889](http://localhost:8889/).
The following code should draw a sine wave to the dashboard.
```python
import numpy as np
from charta import Dashboard, Series, Chart
# Create some data.
x = np.linspace(0, np.pi)
y = np.sin(x)
# Get a reference to the dashboard.
dash = Dashboard.default()
# Add data to the dashboard.
dash.add_series(Series("x", x))
dash.add_series(Series("y", y))
dash.add_chart(Chart("chart", ["x", "y"]))
```