QCharts provides various 2D chart types to be used within Qt Widgets or Qt Quick applications.
Questions tagged [qchart]
120 questions
2
votes
1 answer
QChartView and QScatterSeries overrdide the label of a QPointF
I have a QChartView which displays some 2D points which are representing each one a specific project I want to label each point with the project name AND NOT with it's x,y coordinates as the default behaviour
Is there any way to achieve override…

chatzich
- 1,083
- 2
- 11
- 26
2
votes
1 answer
PyQtChart not displaying data
I have been trying to build a chart using PyQtChart.
I have been following this implementation and it is what I would like to produce.
https://doc.qt.io/qt-5/qtcharts-datetimeaxis-example.html
The Chart displays but is missing the data and the X…

johnashu
- 2,167
- 4
- 19
- 44
2
votes
1 answer
QCharts Second Y Axis on the Right Side
I want to place a second ValueAxis on the right side of a ChartView. The documentation states that "The axes can be placed down, up, left, or right of the chart."
However I find no property in the documentation of AbstractAxis, ValueAxis or…

Herr von Wurst
- 2,571
- 5
- 32
- 53
2
votes
1 answer
How to move series in QChart by mouse?
I have drawn a chart by PyQtChart, and I want to move a series by mouse. Press right button to select a series, then move it to target location, after release right button put the series to target location.
I can get the selected series in…

Jacky
- 73
- 1
- 7
1
vote
0 answers
How to make QPolarChart angular axis counterclockwise?
By default QPolarChart has clockwise angular axis:
I need to make phasor diagram widget, but on phasor diagrams angles must go counterclockwise, phasors must rotate like that:
I didn't find method to do this in Qt docs. How can I do it?

willy_j
- 25
- 6
1
vote
1 answer
QChart initialization causes an EXCEPTION VIOLATION
When I initialize a QChart, it causes an Unhandled exception EXCEPTION_ACCESS_VIOLATION. I have seen this same exception violation error on Qt Forums when others try to initialize a QChart, however their suggestions do not resolve the issue for me.…

Jessica
- 1,083
- 2
- 12
- 27
1
vote
0 answers
How to animate update to values in BarSeries using QChart?
I would like to be able to press a button and update the data shows in a Bar Series. The only way I have found to do this so far is by creating a new series and new bar sets. This has allowed me to create this:
I was wondering if anybody knew of a…

Lggx89
- 11
- 2
1
vote
1 answer
QChart - Bar graph not updating according to Y-axis range
I am new to Python and PyQt5. I am trying to plot a bar graph dynamically using the values coming from virtual port (pyserial). I am able to read all the values, and update the values to the set using self.set0.replace(0, int(dia)). I see that the…

vinuraj_pg
- 57
- 1
- 8
1
vote
1 answer
pyqt QChart dose not show any result
I am using a pyqt GUI application to show some result in charts from postgres database, but it did not work
here is my code that i use
this is how i creat my table
create_table_transaction = ''' CREATE TABLE IF NOT EXISTS transactions (
…

houhou
- 157
- 1
- 11
1
vote
1 answer
How to get values from a chart?
It is easy to get the coordinates of the mouse on the application -
self.setMouseTracking(True)
def mouseMoveEvent(self, event):
mouse_x = event.x()
mouse_y = event.y()
But for chat it doesn't work at all. How to get coordinate values…

paradoxarium
- 177
- 1
- 12
1
vote
1 answer
How to add data to the chart (QtChart)?
A task:
Draw a graph in GUI(PyQT5) on the widget Frame(PyQt5) (this is important).
The live-chart is updated 1 time per second. The X axis is the time axis.
What happened:
Draw a chart (only axis and grid) on the widget
What didn't work:
New…

paradoxarium
- 177
- 1
- 12
1
vote
1 answer
How to save QChart as image?
I have chart with differrent series. I need to save current ChartView as image. I tried to do it as:
QPixmap p(this->size());
QImage* image= new QImage;
QPainter *painter= new…

Konstantin
- 111
- 1
- 8
1
vote
1 answer
How to create Subplot using QCharts?
I want to create two subplots (like 2 rows), the first plot will show the line series graph based on Analog to Digital Converter counts stored in a text file and the second plot will show the line series graph based on Temperature values stored in a…

xpress_embedo
- 377
- 1
- 4
- 18
1
vote
1 answer
Restrict the scrolling on QChart with QBarCategoryAxis
I'm trying to make the standard Qt barchart example scrollable and zoomable. I can use the scroll and zoom method of QChart to define a custom Chart View class that re-implement the different mouse event. However, with this technique it's possible…

Tackwin
- 69
- 1
- 4
1
vote
1 answer
QAbstractSeries signal clicked because type is QLineSeries
Is there a way to connect QAbstractSeries to a clicked signal because the type of the QAbstractSeries is a QLineSeries?
I can do the following:
QlineSeries *series = new QLineSeries();
QChart *chart = new…

Wirman
- 13
- 3