Questions tagged [pyqtchart]
18 questions
36
votes
8 answers
Install PyQt5 5.14.1 on Linux
pip3 install PyQt5
Collecting PyQt5
Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
Complete output from command python setup.py egg_info:
…

ooo
- 512
- 1
- 7
- 27
5
votes
1 answer
Insert QChartView to ui
I am trying to put plot candlestick and 5-days average line on a same qtchart but give two x axis plot code into a UI loader
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
from PyQt5 import uic
import…

ooo
- 512
- 1
- 7
- 27
3
votes
1 answer
Attach colors of my choosing to each slice of QPieSeries
I want to make each slice of a pie chart a color of my choosing. I need to know the snytax of QPieSlice (if that is what I use) and how to attach a color to a particular slice of the pie. For example, I want the "Auto" slice to be '#00FF00', the…

Dennis
- 269
- 1
- 13
2
votes
1 answer
Set Background Color of QChartView
Is it possible to change the background/face color of QBarSeries in pyqtchart? By default background is coming as white, is there any way to change it ?

Saurabh
- 73
- 6
2
votes
1 answer
Display X labels vertically
I have a PyQt Chart but the X axis displays the data horizontally.
How can I display the labels on the X axis Vertically?
My desired outcome is this (Excuse the poor photoshop skills!!)
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from…

johnashu
- 2,167
- 4
- 19
- 44
1
vote
0 answers
Can't import QtChart from PyQt5
This is the most weird problem I ever faced, I can't import QtChart from PyQt5 although I have it installed. I have tried a lot, but I can't figure out the actual solution. I have tried reinstalling multiple times. I have tried every single possible…

Araf
- 27
- 4
1
vote
2 answers
How to add a crosshair to a pyqt5 graph
I need to add a crosshair, like here on the page.crosshair
The crosshair should move behind the mouse.
There are few examples on the Internet on this topic.
There's "pyqtgraph" everywhere". I don't understand them.
I want to use the button to add…

inquirer
- 4,286
- 2
- 9
- 16
1
vote
1 answer
How to Get Value of Pie Slice on double Click in PyQtChart
I want to get the value of pie slice when I click on the slice of the donut chart. How can we achieve it ? I want to store the value of slice in an variable. Please let me know your thoughts or suggestions.
from PyQt5.QtWidgets import QApplication,…

Saurabh
- 73
- 6
0
votes
0 answers
How to set a horizontal scroll bar and zoom bar for a Bar Chart in PyQt5 using PyQtChart?
I would like to have a horizontal scroll bar and zoom bar for this QChartView containing a QBarSeries from PyQtChart library because the bars displayed inside the QChartView get compressed as the number of data to visualize increases. Thus, I would…

anon
- 1
- 1
0
votes
1 answer
Best way to chart streamed data using PyQtChart or pyqtgraph with PyQt5 on Python?
I am streaming TimeSeries that I want to chart efficiently (20+ chart live on a small computer).
I have tried PyQtChart and pyqtgraph on PyQt5, but with both libs, I am ending up redrawing the whole chart for each data that I receive, which doesn't…

Je Je
- 508
- 2
- 8
- 23
0
votes
1 answer
How can I add zero value axis in pyqt charts?
I'm trying add zero value axis in chart by using pyqt.
This picture shows graph plotted by pyqt6 charts:
In the above graph, there is no zero value in axis-y.
How can I show zero value?
This is my code for…

bituniverse
- 98
- 11
0
votes
0 answers
Cannot import PyQt5
In Python (v3.6, Win10) I get an error, if I try to import QtChart. The command
>from PyQt5.QtChart import *
yields this message:
ImportError: DLL load failed. The specified procedure could not be
found
The command pip list shows, that I have…

dba
- 325
- 1
- 6
- 16
0
votes
1 answer
How to get the Value from Bar Chart in PyqtChart
I have implemented a barchart and now want to get the value when double click on bar. I know about slot and signal concept and able to call the function on double click but not sure what parameter i should use to get the values. Here is the…

Saurabh
- 73
- 6
0
votes
1 answer
QPieChart Legend and Percentage Label
Is it possible in a QPieChart to display the percentages as a label on the circle and the strings in the legend?
Here is my Code for an example
from PyQt5 import QtCore, QtGui, QtWidgets, QtChart
from PyQt5.QtWidgets import QApplication,…

Sarah
- 3
- 2
0
votes
0 answers
How to create a line chart with altering colors?
How can I create in Qt a line chart with changing colors? Something like this:
I can only see a way to change the color of the entire chart.
EDIT:
The option of creating a few series is no good for me, since my series are dynamic, and the points…

speller
- 1,641
- 2
- 20
- 27