aboutsummaryrefslogtreecommitdiffstats
path: root/stats/statsseries.cpp
blob: 48b31336e003c8e6fe2ff6da5a3761fd7eb6e607 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: GPL-2.0
#include "statsseries.h"
#include "statsaxis.h"

#include <QChart>

StatsSeries::StatsSeries(QtCharts::QChart *chart, StatsAxis *xAxis, StatsAxis *yAxis) :
	xAxis(xAxis), yAxis(yAxis)
{
	chart->addSeries(this);
	if (xAxis && yAxis) {
		attachAxis(xAxis->qaxis());
		attachAxis(yAxis->qaxis());
	}
}

StatsSeries::~StatsSeries()
{
}