Category : charts

Timer { id: timer interval: 1000 repeat: true triggeredOnStart: true running: false onTriggered: { currentIndex++; if (currentIndex < speedsXml.count) { // Check if there is a series for the data already // (we are using driver name to identify series) var lineSeries = chartView.series(speedsXml.get(currentIndex).driver); if (!lineSeries) { lineSeries = chartView.createSeries(ChartView.SeriesTypeLine, speedsXml.get(currentIndex).driver); chartView.axisY().min = 0; chartView.axisY().max ..

Read more

I’m trying to create a StackedColumn100 in a C# Chart to replicate one I have in Excel: I pull the data from Sql Server and step through it like so: BarChart.DataSource = dataSet.Tables[0]; BarChart.Series.Clear(); foreach(DataRow row in BarChart.Tables[0].Rows) { string name = row[0].ToString(); BarChart.Series.Add(new Series(name)); BarChart.Series[name].ChartType = SeriesChartType.StackedColumn100; BarChart.Series[name].Points.Add(new DataPoint(0, row[2].ToString())); BarChart.Series[name].Points.Add(new DataPoint(1, row[1].ToString())); } ..

Read more

I have a command to get data from the database and its working fine, since the data in the database is encrypted I decrypt it using my decrypting method inside a loop Here is my code: SqlCommand command = new SqlCommand("select s.ProductID, p.ProductDesc, YEAR(s.SalesDate)as year, ISNULL(sum(s.Qty), 0.0) as total from Sales as s INNER JOIN ..

Read more

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