Category : charts

I have a simple chart view in my Qml: import QtQuick 2.9 import QtQuick.Window 2.2 import QtCharts 2.0 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") ChartView { id: chartView anchors.fill: parent theme: ChartView.ChartThemeBrownSand antialiasing: true LineSeries { name: "LineSeries" XYPoint { x: 0; y: 0 } XYPoint { x: 1.1; y: ..

Read more

So I’m trying to make a bar chart from a database and I managed to do that but each time I update the database the graph is not changing I’ve tried < this but no use: void MainWindow::update_graph() { qDebug() <<ui->customPlot->graphCount(); ui->customPlot->removeGraph(0); ui->customPlot->replot(); stats(); } while this is the graph making code : void MainWindow::stats() ..

Read more

i already searched in this topic but the answers i found are a bit overwhelmed ,so i wanted to get a semblance of an update . I’m willing to create a desktop application on java (cause i’m a jee web developer) and i was wondering if in 2021 Java Swing is the application i should ..

Read more

I am trying to render 2 charts, that are basically the same, except for the Y data. This is the code QtCharts::QLineSeries *cpuSeries = new QtCharts::QLineSeries(); QtCharts::QLineSeries *ramSeries = new QtCharts::QLineSeries(); QString string; while((string = in.readLine()) != nullptr){ QStringList values = string.split(QLatin1Char(‘;’)); QDateTime moment = QDateTime::fromString(values[0], "yyyy:MM:dd:hh:mm:ss"); cpuSeries -> append(moment.toMSecsSinceEpoch(), values[2].toDouble()); ramSeries -> append(moment.toMSecsSinceEpoch(), values[3].toDouble()); ..

Read more