Example of using database and chart with PySide6
I used PySide6 unlike the others because PyQt5 or PyQt6 is very finicky to import QChart for some reasons.
You can see the basic description to use the database GUI here - pyqt-database-example.
Yes, it is PyQt database but PySide and PyQt are almost identical so there is not a bit of a problem to understand.
- PySide6
python -m pip install git+https://github.com/yjg30737/pyside-database-chart-example.git --upgrade
from PySide6.QtWidgets import QApplication
from pyside_database_chart_example.main import Window
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
window = Window()
window.show()
sys.exit(app.exec())
Result
- pyside-db-chart-mapping-example - map the db table view and chart with using
QVBarModelMapper