Questions tagged [qtcharts]

Qt Charts module provides a set of easy to use chart components, include scatter plots, bar plots, polar charts.

Qt Charts module provides a set of easy to use chart components, include scatter plots, bar plots, polar charts. It is an official Qt add-on, licensed GPL or commercial (as opposed to LGPL/commercial for most of Qt).

The strength of Qt Charts lies in its integration into Qt, which provides both fast, interactive and animated rendering, as well as rendering to offscreen targets, including vector graphics, e.g. by using Qt's QSvgGenerator.

199 questions
22
votes
2 answers

How to remove margin from QChartView or QChart

All Qt Charts seem to have a margin and rounded corners. How to remove both? I want the white area to fill the entire dialog. I cannot find any informations in the Qt documentations. I found a screenshot of one Example that does not have this…
feedc0de
  • 3,646
  • 8
  • 30
  • 55
12
votes
1 answer

Get mouse coordinates in QChartView's axis system

Is there a way to get mouse's coordinates on plotting area of a QChartView? Preferably in the axis units. The goal is to display mouse's coordinates while moving the mouse around on the plot so the user can measure plotted objects. I couldn't find…
A. Vieira
  • 1,213
  • 2
  • 11
  • 27
10
votes
2 answers

Can't include

It seems I can't find a way to include in my header so Qt knows about the QLineSeries class. I added Qt += charts to my .pro file. I added #include to MainWindow.h Then I delete .pro.user file and any…
A. Vieira
  • 1,213
  • 2
  • 11
  • 27
9
votes
3 answers

How to change the z-index of QLineSeries?

Is there any way to order the z-index for some of my QAbstractSeries added to QChart? It seems that QChart does it internally.
milad-gh
  • 113
  • 1
  • 7
8
votes
3 answers

How to automatically rescale axis in QtCharts?

I am using QtCharts. I need both axes to be rescaled after appending values. The values I appended are not between 0 and 1 and also not from the year 1970. Constructor code of my dialog looks like this: m_series = new…
feedc0de
  • 3,646
  • 8
  • 30
  • 55
7
votes
1 answer

Proper way to update QtCharts from a worker thread?

since this is my first question I wanted to say that StackOverflow has helped my countless times. Thank you. Now to my problem. I am currently trying trying to implement a simple data acquisition application in Qt 5.8. The application has to…
7
votes
1 answer

How to enable zooming in QtCharts?

I want to be able to zoom in my QtCharts using the mouse. The best way to zoom using the mouse would be by drawing rectangles and adjusting the view to the new smaller rectangle. How Can I implement this in QtCharts? Highcharts has a very similar…
feedc0de
  • 3,646
  • 8
  • 30
  • 55
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
6
votes
1 answer

How to install on windows

I have a hard time getting QtCharts to work on my computer. I think I am missing the concept. I have Qt 5.8 installed on my computer. I am using visual studio for all my development. After googling for a while I have noticed people say that you need…
Illia
  • 301
  • 1
  • 4
  • 16
6
votes
2 answers

How to repaint a QChart

I'd like to know how to repaint a QChart after I append new points to the QLineSeries added to it. The goal is to use this for displaying data being acquired at high rates (up to 400 000 pts/sec) and updating the plot as the points arrive in…
A. Vieira
  • 1,213
  • 2
  • 11
  • 27
5
votes
1 answer

draging a point on qtcharts in qml

I am trying to drag a point on LineSeries on qtcharts. Here is my code: import QtQuick 2.0 import QtCharts 2.0 Item { anchors.fill: parent ChartView { title: "Two Series, Common Axes" anchors.fill: parent ValueAxis…
PHA
  • 1,588
  • 5
  • 18
  • 37
5
votes
2 answers

Scale x-axis of QChartView using mouse wheel

In my application I use QChart to show line graph. Unfortunately Qt Charts doesn't support such basic functions as zooming using mouse wheel and scrolling by mouse. Yes, there is RubberBand functionality but that still doesn't support scrolling etc…
folibis
  • 12,048
  • 6
  • 54
  • 97
4
votes
1 answer

How do I get the axis labels in QtChart QLineSeries

I am able to generate graphs using the QtCharts library in Python but I can't seem to figure out how to add axis labels to my graphs... I see the ability to setLabelFormat() for a QValueAxis, but nothing on how to set the text itself. I'm sure…
skbeez
  • 89
  • 2
  • 8
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
1 answer

QtCharts auto range for y-axis

I would like to automatically change the y-axis by using a dynamic plot. I changed the dynamic plot example in the examples and have appended lots of points. After a new point is appended, the plot should adjust its y-axis to account for the new…
Gokhan Sahin
  • 165
  • 2
  • 15
1
2 3
13 14