##// END OF EJS Templates
Creates method that will display a tooltip and a tracer with data point information after a while
Creates method that will display a tooltip and a tracer with data point information after a while

File last commit:

r452:158d38bb6d5a
r481:0277630b5c10
Show More
ScalarSeries.cpp
13 lines | 480 B | text/x-c | CppLexer
#include <Data/ScalarSeries.h>
ScalarSeries::ScalarSeries(QVector<double> xAxisData, QVector<double> valuesData,
const Unit &xAxisUnit, const Unit &valuesUnit)
: DataSeries{std::make_shared<ArrayData<1> >(std::move(xAxisData)), xAxisUnit,
std::make_shared<ArrayData<1> >(std::move(valuesData)), valuesUnit}
{
}
std::unique_ptr<IDataSeries> ScalarSeries::clone() const
{
return std::make_unique<ScalarSeries>(*this);
}