Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
68e482e9
Kaydet (Commit)
68e482e9
authored
Mar 11, 2012
tarafından
Rafael Dominguez
Kaydeden (comit)
Markus Mohrhard
Mar 23, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Create respective error bars in areachart when creating shapes.
üst
3bb87d7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
AreaChart.cxx
chart2/source/view/charttypes/AreaChart.cxx
+20
-5
No files found.
chart2/source/view/charttypes/AreaChart.cxx
Dosyayı görüntüle @
68e482e9
...
@@ -836,7 +836,7 @@ void AreaChart::createShapes()
...
@@ -836,7 +836,7 @@ void AreaChart::createShapes()
if
(
!
bIsVisible
)
if
(
!
bIsVisible
)
continue
;
continue
;
bool
bCreateErrorBar
=
false
;
bool
bCreate
YErrorBar
=
false
,
bCreateX
ErrorBar
=
false
;
{
{
uno
::
Reference
<
beans
::
XPropertySet
>
xErrorBarProp
(
pSeries
->
getYErrorBarProperties
(
nIndex
));
uno
::
Reference
<
beans
::
XPropertySet
>
xErrorBarProp
(
pSeries
->
getYErrorBarProperties
(
nIndex
));
if
(
xErrorBarProp
.
is
()
)
if
(
xErrorBarProp
.
is
()
)
...
@@ -845,14 +845,25 @@ void AreaChart::createShapes()
...
@@ -845,14 +845,25 @@ void AreaChart::createShapes()
bool
bShowNegative
=
false
;
bool
bShowNegative
=
false
;
xErrorBarProp
->
getPropertyValue
(
C2U
(
"ShowPositiveError"
))
>>=
bShowPositive
;
xErrorBarProp
->
getPropertyValue
(
C2U
(
"ShowPositiveError"
))
>>=
bShowPositive
;
xErrorBarProp
->
getPropertyValue
(
C2U
(
"ShowNegativeError"
))
>>=
bShowNegative
;
xErrorBarProp
->
getPropertyValue
(
C2U
(
"ShowNegativeError"
))
>>=
bShowNegative
;
bCreateErrorBar
=
bShowPositive
||
bShowNegative
;
bCreateYErrorBar
=
bShowPositive
||
bShowNegative
;
}
xErrorBarProp
=
pSeries
->
getXErrorBarProperties
(
nIndex
);
if
(
xErrorBarProp
.
is
()
)
{
bool
bShowPositive
=
false
;
bool
bShowNegative
=
false
;
xErrorBarProp
->
getPropertyValue
(
C2U
(
"ShowPositiveError"
))
>>=
bShowPositive
;
xErrorBarProp
->
getPropertyValue
(
C2U
(
"ShowNegativeError"
))
>>=
bShowNegative
;
bCreateXErrorBar
=
bShowPositive
||
bShowNegative
;
}
}
}
}
Symbol
*
pSymbolProperties
=
m_bSymbol
?
(
*
aSeriesIter
)
->
getSymbolProperties
(
nIndex
)
:
0
;
Symbol
*
pSymbolProperties
=
m_bSymbol
?
(
*
aSeriesIter
)
->
getSymbolProperties
(
nIndex
)
:
0
;
bool
bCreateSymbol
=
pSymbolProperties
&&
(
pSymbolProperties
->
Style
!=
SymbolStyle_NONE
);
bool
bCreateSymbol
=
pSymbolProperties
&&
(
pSymbolProperties
->
Style
!=
SymbolStyle_NONE
);
if
(
!
bCreateSymbol
&&
!
bCreateErrorBar
&&
!
pSeries
->
getDataPointLabelIfLabel
(
nIndex
)
)
if
(
!
bCreateSymbol
&&
!
bCreateYErrorBar
&&
!
bCreateXErrorBar
&&
!
pSeries
->
getDataPointLabelIfLabel
(
nIndex
)
)
continue
;
continue
;
//create a group shape for this point and add to the series shape:
//create a group shape for this point and add to the series shape:
...
@@ -899,8 +910,12 @@ void AreaChart::createShapes()
...
@@ -899,8 +910,12 @@ void AreaChart::createShapes()
}
}
}
}
}
}
//create error bar
//create error bars
createErrorBar_Y
(
aUnscaledLogicPosition
,
**
aSeriesIter
,
nIndex
,
m_xErrorBarTarget
);
if
(
bCreateXErrorBar
)
createErrorBar_X
(
aUnscaledLogicPosition
,
**
aSeriesIter
,
nIndex
,
m_xErrorBarTarget
);
if
(
bCreateYErrorBar
)
createErrorBar_Y
(
aUnscaledLogicPosition
,
**
aSeriesIter
,
nIndex
,
m_xErrorBarTarget
);
//create data point label
//create data point label
if
(
(
**
aSeriesIter
).
getDataPointLabelIfLabel
(
nIndex
)
)
if
(
(
**
aSeriesIter
).
getDataPointLabelIfLabel
(
nIndex
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment