πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

chartinglib

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chartinglib

Integrate Plotly charts into Textual TUI applications with a customizable ChartWidget.

0.1.0
PyPI
Maintainers
1

ChartingLib πŸ“ˆ

ChartingLib is a modern TUI (Textual User Interface) Python library built with Textual and Plotly, designed for interactive data visualization directly in your terminal.

It provides a rich, responsive interface to display a variety of charts such as Line, Bar, Scatter, Candlestick, GDP trends, and more.

✨ Features

  • πŸ“Š Interactive Plotly charts inside your terminal
  • 🧠 Automatic data generation or loading using DataProcessing
  • 🧩 Modular chart widget (ChartWidget) for easy embedding
  • 🎨 Sidebar for selecting different chart types
  • πŸ’» Clean TUI with keyboard navigation (powered by Textual)

πŸ“¦ Installation

pip install chartinglib

πŸš€ Usage

Here’s a simple example using ChartWidget in a Textual app:

from textual.app import App, ComposeResult
from textual.containers import Container
from chartinglib import ChartWidget, DataProcessing

class DemoChartApp(App):
    def compose(self) -> ComposeResult:
        raw_data = DataProcessing("line").process()
        chart = ChartWidget(chart_type="line", data=raw_data)
        yield Container(chart)

if __name__ == "__main__":
    app = DemoChartApp()
    app.run()

πŸ“ˆ Supported Chart Types

  • line
  • bar
  • scatter
  • candlestick
  • gdp
  • revenue
  • multiple_lines
  • mixed_bar_line

πŸ›  Development

git clone https://github.com/yourusername/chartinglib
cd chartinglib
pip install -e .[dev]

To run the example app:

python -m chartinglib.app

πŸ“„ License

This project is licensed under the MIT License. See LICENSE for details.

πŸ‘€ Author

Your Name
GitHub

πŸ™ Acknowledgments

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts