PiChart - Tiny Dashboard Charts for MicroPython
PiChart is a lightweight library for creating charts, cards, and image tiles on MicroPython displays, optimized for devices like the Raspberry Pi Pico with Pimoroni displays. Plot data as bars, lines, or points, display text cards, or show JPEG images in a customizable grid layout.
Features
- Bar, line, and point chart types
- Text cards for simple info displays
- JPEG image tiles with borders
- Grid-based container for layout management
- Customizable colors, sizes, and display options
Requirements
- MicroPython firmware (e.g., Pimoroni’s build with
jpegdec) - A compatible display (e.g., Pico Display Pack)
- Hardware: Raspberry Pi Pico or similar MicroPython device
Installation
- Copy
pichart.pyto your MicroPython device using a tool like Thonny or rshell. - Ensure your MicroPython firmware includes
jpegdec(included in Pimoroni’s builds).
Quick Start
from pichart import Chart, Container
from picographics import PicoGraphics, DISPLAY_PICO_DISPLAY
# Set up display
display = PicoGraphics(display=DISPLAY_PICO_DISPLAY)
# Create a chart
chart = Chart(display, title="Temp", values=[20, 25, 22, 28])
chart.x = 10
chart.y = 10
chart.width = 220
chart.height = 120
chart.data_colour = {'red': 255, 'green': 0, 'blue': 0} # Red bars
# Add to container and draw
container = Container(display)
container.add_chart(chart)
container.update()
Documentation
See docs/ for detailed guides:
- User Guide: Full usage instructions
- API Reference: Class and method details
- Examples: More code samples
License
MIT License - See LICENSE for details.
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
Metadata
Release files for PiChart 2.2.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 | |
|---|---|---|---|
| pichart-2.2.0.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PiChart-2.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / pichart-2.2.0.tar.gz
| Download URL | pichart-2.2.0.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3781f6c2c3a08c7f322d84617aa1e1188e3bc9d797adaad5eaed8a3650226e0
|
|
BLAKE2b-256 checksum How to use checksums |
1cf8843f98ee544ed5263d9e0d0a4e6690a9913e53798cb2c5f15e824ece39af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / PiChart-2.2.0-py3-none-any.whl
| Download URL | PiChart-2.2.0-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
260c5f12cd90496e3a0f310ba8fda9c39e03b0404bb7829db26f311a7ac3e690
|
|
BLAKE2b-256 checksum How to use checksums |
55c5ab46399dd1baeeb0206b6850075a3fdb419da9da5e8d10520d6ca52182b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|