Skip to main content

Python library for generating fan, line, and pie charts as SVG or PNG.

Project description

README.md

NiceCharts v1.0

NiceCharts là thư viện Python đơn giản giúp bạn tạo các loại biểu đồ: fan chart, line chart, và pie chart, xuất ra định dạng SVG hoặc PNG.

🔹 Tính năng

  • Tạo Fan Chart (180° hoặc 360° – Pie chart)
  • Tạo Line Chart với các điểm, nhãn trục, tiêu đề
  • Xuất trực tiếp ra SVG hoặc PNG
  • Màu sắc và nhãn tùy chỉnh
  • Module nhẹ, dễ sử dụng, không phụ thuộc matplotlib

🔹 Cài đặt

pip install Pillow cairosvg
# Hoặc sau khi upload PyPI:
pip install nicecharts

🔹 Sử dụng cơ bản

from nicecharts import fan_chart, line_chart, pie_chart

# Fan chart
fan_chart([30, 20, 50], labels=["A","B","C"], title="Fan Demo", outfile="fan.svg")

# Line chart
line_chart([1,2,3,4], [10,20,15,25], title="Line Demo", outfile="line.svg")

# Pie chart (full circle)
pie_chart([40,60], labels=["X","Y"], title="Pie Demo", outfile="pie.svg")

🔹 License

MIT License: Mọi người được phép sử dụng thư viện để học tập và cá nhân.

🔹 Liên hệ

GitHub: https://github.com/username/nicecharts Email: [email của bạn]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nicecharts-1.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nicecharts-1.1.0-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file nicecharts-1.1.0.tar.gz.

File metadata

  • Download URL: nicecharts-1.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nicecharts-1.1.0.tar.gz
Algorithm Hash digest
SHA256 436d083e629cbc4bff7434203821890dbb9c0fbb3db45a5f6d51e68c81915f44
MD5 31ca318b08502f874774894e90163f0a
BLAKE2b-256 29f535c19918461c3d11c0f2512efdd40b3b122ae54208a369dbdbd51d372bd0

See more details on using hashes here.

File details

Details for the file nicecharts-1.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: nicecharts-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for nicecharts-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 25c2baf355b72e36f7167334391bbca35f2f5547153d924641f396a8d3696516
MD5 a800c5e13b94c48c3e6189de16bf8072
BLAKE2b-256 e7e8fe514b3145a6aa8c9004d2dc780e5e2f215ccfc8af8d48dd353bf427e8a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page