summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-10-15 12:05:16 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-19 13:47:37 +0100
commitebf550d68443e0f519fe9f77763d00fce61edb78 (patch)
tree9b9bcb783bed0a99aff90e876bf3bed61185a4c1 /chart2
parenta369737c184402e4cc175d4cf2b78e0a08527ec3 (diff)
some small cosmetic changes
Change-Id: I2bc8c39f91faf6915c4970a002e4030f81c95bc5
Diffstat (limited to 'chart2')
-rw-r--r--chart2/inc/DataSeriesState.hxx17
1 files changed, 13 insertions, 4 deletions
diff --git a/chart2/inc/DataSeriesState.hxx b/chart2/inc/DataSeriesState.hxx
index bfe14c98f809..64b27d710694 100644
--- a/chart2/inc/DataSeriesState.hxx
+++ b/chart2/inc/DataSeriesState.hxx
@@ -20,11 +20,13 @@
namespace chart {
-class DataSeries
+class DataSequence
{
public:
typedef mdds::multi_type_vector<mdds::mtv::element_block_func> DataSeriesType;
+ // used for fast iteration through data series
+ // allows to easily skip empty data ranges
DataSeriesType getDataSeries();
size_t size();
@@ -43,7 +45,11 @@ struct DataSeriesProperties
{
typedef std::map< OUString, com::sun::star::uno::Any > PropertyMap;
PropertyMap aSeriesProps;
+ // we might want to switch to multi_type_vector for better memory usage
+ // hopefully this vector is empty most of the time
std::vector< PropertyMap > aPointProps;
+
+ com::sun::star::chart::MissingValueTreatment eMissingValueTreatment;
};
struct Axis
@@ -56,10 +62,13 @@ struct Axis
struct DataSeriesState
{
- DataSeries aXValue;
- DataSeries aYValue;
+ // length of the data series is min(aXValue.size(), aYValue.size());
+ DataSequence aXValue;
+ DataSequence aYValue;
DataSeriesProperties aProperties;
- std::map<OUString, DataSeries> aMapProperties;
+ // also contains bubble chart bubble size
+ // apply values to properties with functor
+ std::map<OUString, DataSeries> aMappedProperties;
Axis aXAxis;
Axis aYAxis;
};