Skip to content

About

TeeChart charting plotting graphing library of controls for Python Tkinter and PyQt

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

TeeChart-for-Python

TeeChart charting plotting graphing library of controls for Python Tkinter and PyQt

Notes:

Tested in Windows with Python version 3.14

Usage:

py test_teechart.py

This creates a simple chart:

TeeChart for Python example pie chart

Python code:

from __future__ import annotations

import argparse
import struct
import sys

from teechart import TeeChart, TeeChartError


def main() -> int:
    parser = argparse.ArgumentParser(description="teechart.dll test")
    parser.add_argument("dll", nargs="?", default="teechart.dll", help="Optional TeeChart DLL path")
    args = parser.parse_args()

    try:
        chart = TeeChart(args.dll)
        chart.render(
            x=[],
            y=[2.5, 3.2, 2.8, 4.1],
            z=[],
            texts=["One", "Two", "Three", "Four"],
            output_type="modal",
            width=800,
            height=500,
            style="pie",
            title="TeeChart for Python",
            footer="",
            horiz=False,
            commander=False,
            opengl=False,
        )
        print("TeeChartRender correctly executed")

    except (FileNotFoundError, TeeChartError, OSError, TypeError, ValueError) as exc:
        print(f"Error: {exc}", file=sys.stderr)
        return 1

    return 0

if __name__ == "__main__":
    raise SystemExit(main())

About

TeeChart charting plotting graphing library of controls for Python Tkinter and PyQt

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages