Kaydet (Commit) ebf550d6 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

some small cosmetic changes

Change-Id: I2bc8c39f91faf6915c4970a002e4030f81c95bc5
üst a369737c
...@@ -20,11 +20,13 @@ ...@@ -20,11 +20,13 @@
namespace chart { namespace chart {
class DataSeries class DataSequence
{ {
public: public:
typedef mdds::multi_type_vector<mdds::mtv::element_block_func> DataSeriesType; 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(); DataSeriesType getDataSeries();
size_t size(); size_t size();
...@@ -43,7 +45,11 @@ struct DataSeriesProperties ...@@ -43,7 +45,11 @@ struct DataSeriesProperties
{ {
typedef std::map< OUString, com::sun::star::uno::Any > PropertyMap; typedef std::map< OUString, com::sun::star::uno::Any > PropertyMap;
PropertyMap aSeriesProps; 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; std::vector< PropertyMap > aPointProps;
com::sun::star::chart::MissingValueTreatment eMissingValueTreatment;
}; };
struct Axis struct Axis
...@@ -56,10 +62,13 @@ struct Axis ...@@ -56,10 +62,13 @@ struct Axis
struct DataSeriesState struct DataSeriesState
{ {
DataSeries aXValue; // length of the data series is min(aXValue.size(), aYValue.size());
DataSeries aYValue; DataSequence aXValue;
DataSequence aYValue;
DataSeriesProperties aProperties; 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 aXAxis;
Axis aYAxis; Axis aYAxis;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment