diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-10-10 02:55:47 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-19 13:47:35 +0100 |
commit | fcfb42808464ea909ace4a892803c2e8e9e3bd1d (patch) | |
tree | e9a4b6cc6c2ede66e5f6589bdd71e2d134bcf029 /chart2 | |
parent | e79c706ddda21f850fe3c5a867bacf3982e5b112 (diff) |
we only support 2D Bubble Charts anyway
Change-Id: I3e1ac100c3c217e194f2b58c2dadcec370560d51
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/BubbleChart.cxx | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/chart2/source/view/charttypes/BubbleChart.cxx b/chart2/source/view/charttypes/BubbleChart.cxx index fd6306d58586..1db4d838431e 100644 --- a/chart2/source/view/charttypes/BubbleChart.cxx +++ b/chart2/source/view/charttypes/BubbleChart.cxx @@ -52,6 +52,9 @@ BubbleChart::BubbleChart( const uno::Reference<XChartType>& xChartTypeModel , m_fMaxLogicBubbleSize( 0.0 ) , m_fBubbleSizeFactorToScreen( 1.0 ) { + // We only support 2 dimensional bubble charts + assert(nDimensionCount == 2); + if( !m_pMainPosHelper ) m_pMainPosHelper = new PlottingPositionHelper(); PlotterBase::m_pPosHelper = m_pMainPosHelper; @@ -253,9 +256,6 @@ void BubbleChart::createShapes() pPosHelper = m_pMainPosHelper; PlotterBase::m_pPosHelper = pPosHelper; - if(m_nDimension==3) - fLogicZ = nZ+0.5; - //collect data point information (logic coordinates, style ): double fLogicX = pSeries->getXValue(nIndex); double fLogicY = pSeries->getYValue(nIndex); @@ -311,18 +311,15 @@ void BubbleChart::createShapes() //create data point drawing::Direction3D aSymbolSize = transformToScreenBubbleSize( fBubbleSize ); - if(m_nDimension!=3) - { - uno::Reference<drawing::XShape> xShape; - xShape = m_pShapeFactory->createCircle2D( xPointGroupShape_Shapes - , aScenePosition, aSymbolSize ); + uno::Reference<drawing::XShape> xShape; + xShape = m_pShapeFactory->createCircle2D( xPointGroupShape_Shapes + , aScenePosition, aSymbolSize ); - this->setMappedProperties( xShape - , pSeries->getPropertiesOfPoint( nIndex ) - , PropertyMapper::getPropertyNameMapForFilledSeriesProperties() ); + this->setMappedProperties( xShape + , pSeries->getPropertiesOfPoint( nIndex ) + , PropertyMapper::getPropertyNameMapForFilledSeriesProperties() ); - m_pShapeFactory->setShapeName( xShape, "MarkHandles" ); - } + m_pShapeFactory->setShapeName( xShape, "MarkHandles" ); //create data point label if( (**aSeriesIter).getDataPointLabelIfLabel(nIndex) ) |