QCharts provides various 2D chart types to be used within Qt Widgets or Qt Quick applications.
Questions tagged [qchart]
120 questions
29
votes
2 answers
How to insert QChartView in form with Qt Designer?
I want to add QChart to the form. But I can't find it in the Widget Box. So I created it in the code. How can I insert it in QWidget or QFrame or something else?
I want to set area of that widget in QtDesigner.

Ufx
- 2,595
- 12
- 44
- 83
10
votes
1 answer
Reverse axis of QPolarChart
I need to modify a QPolarChart to create a Satellite SkyPlot.
For this, I need to reverse the radial axis (elevation axis) so that 90 is placed on the origin and 0 on the outer ring.
In the list of members for QValueAxis I found the method…

codeaviator
- 2,545
- 17
- 42
9
votes
2 answers
How to update/redraw QChart after data is added to QLineSeries?
I am generating some data that I want to chart using QChart & friends. This is my first time using QChart, and so basically what I did was copy the QLineSeries Example and modify it to my needs. My current code looks like this:
quint64 last=0;
…

Mr. Developerdude
- 9,118
- 10
- 57
- 95
6
votes
1 answer
Implement selection on QChartView
I want to make an implementation of chart selection based on QChart and QChartView.
The family of the classes have a big advantage - easy use of openGL and animations, for example:
QLineSeries *series = new QLineSeries();
series->setUseOpenGL(true);…

Vladimir Bershov
- 2,701
- 2
- 21
- 51
5
votes
2 answers
QChart realtime performance
I am using QChart for an application. The application need to show some data realtime. There will be one chart and 24 series in the chart. The data rate is 400pts for every channel.
I used another thread for receiving and processing received data…

jack
- 98
- 1
- 4
4
votes
1 answer
Dynamically updating a QChart
I have a class that plots a candlestick for given data. I am trying to dynamically update the plot as soon a new data is received. Data is received at irregular intervals.
What mechanism can I use in order to let the class know it's time to update…

afp_2008
- 1,940
- 1
- 19
- 46
4
votes
0 answers
How to fill a part between a QLineSeries line and X axis?
I'm building a program in Qt with C++ to visualize some distributions, so I want to fill a part of my chart with another color, like the blue part of this picture:
The chart is drawn using QLineSeries of Qcharts.
I searched QCharts' document, the…

Yichuan Gao
- 41
- 2
4
votes
1 answer
qt chart remove space for title/legend/
I want to display a QPolarChart in a QChartView.
I won't add a title or a legend anything else than the QPolarChart.
Unfortunately, when I add my chart I have bit empty white space around the QPolarChart.I guess this is the space for the title and…

user7431005
- 3,899
- 4
- 22
- 49
4
votes
2 answers
How to change one QBarSet bar/element color in qt?
I connected to the hovered signal of QBarSet to a slot, which will change the QBarSet color when mouse hovers on the bar set and reset the color when mouse leaves.
The code snippet looks like this:
void BarChart::hoverTest(bool status, int…

Theodore Tang
- 831
- 2
- 21
- 42
4
votes
1 answer
How to hide some of the categories in QBarCategoryAxis in Qt
I did not find a way to hide some of the categories in QBarCategoryAxis when I create a chart. If I do not specify the category for axis, by default the categories will be like from 1 to QBarSet size. If I specify the category, how am I able to only…

Theodore Tang
- 831
- 2
- 21
- 42
4
votes
1 answer
QT insert widget inside an other widget
I've created an UI with qt Creator,in this UI there is just a button and a widget (let's call it respectively button and char_container);
I need to add a chartview programmatically inside the chart_container.
I didn't change the default layout.
I've…

Antonio Del Sannio
- 195
- 2
- 17
3
votes
1 answer
Customize or Define new Qml ChartView theme
There's an official sample code that customize background and plot area brushes of QChart: Custom chart example
How can I acheive this in Qml way with ChartView(Qml type)?
I want to customize Qml ChartView like that sample. but there's no direct…

Keoush
- 43
- 1
- 5
3
votes
0 answers
How can I add wrap capability to a QLegend
After adding more than 3 items (like all of the examples) to a QChat's QLegend, the legend becomes overcrowded and the text for each series item gets truncated becoming unreadable. I need to be able to resize the attached legend or at lease allow…

mikeinSantaRosa
- 33
- 4
3
votes
2 answers
qt chart equal axis (axis should form square not rectangle)
How can I set my axis to be equally long in my QChart plot?
I want to have my axis to form a square instead of a rectangle so that my contents are not distorted.
I want to change the left example image to look like the right. The axis should have…

user7431005
- 3,899
- 4
- 22
- 49
3
votes
0 answers
QLineSeries get value of function presented by chart by x value
For example I have a QChart with QLineSeries with some points. Chart plots lines between these points in view, but how can I access value of Y by X at place where no points are, i.e. if I have e.g. points (0,0) and (10,10) how can I get value of Y…

Shadasviar
- 466
- 5
- 15