30#include "KDChartVectorSeries.h"
31#include "KDChartSeriesCollection.h"
34KDChartVectorSeries::~KDChartVectorSeries()
40uint KDChartVectorSeries::rows()
const
45const KDChartData& KDChartVectorSeries::cell( uint row )
const
47 Q_ASSERT( row < size() );
52void KDChartVectorSeries::setCell( uint row,
const KDChartData& element)
54 Q_ASSERT( row < size() );
56 this->at(row) = element;
59void KDChartVectorSeries::expand( uint rows )
66double KDChartVectorSeries::maxValue(
int coordinate,
bool &ok )
const
68 double maxValue = 0.0;
71 KDChartVectorSeries::const_iterator i;
72 for ( i = begin(); i != end(); i ++ )
74 const KDChartData& d = *i;
83 maxValue = TQMAX( maxValue, d.
doubleValue( coordinate ) );
93double KDChartVectorSeries::minValue(
int coordinate,
bool &ok )
const
95 double minValue = 0.0;
98 KDChartVectorSeries::const_iterator i;
99 for ( i = begin(); i != end(); i ++ )
101 const KDChartData& d = *i;
110 minValue = TQMIN( minValue, d.
doubleValue( coordinate ) );
Encapsulates one data cell in a chart.
double doubleValue(int valNo=1) const
Returns the double value represented by this object, or DBL_MIN if this object does not represent a d...
bool isDouble(int valNo=1) const
Returns true if the object represents a double value and false otherwise.