Difference between revisions of "Documentation/DevGuide/Charts/Statistics"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
m |
||
Line 12: | Line 12: | ||
Additionally, the mean value line is displayed and error indicators for the standard deviation are applied. | Additionally, the mean value line is displayed and error indicators for the standard deviation are applied. | ||
− | < | + | <syntaxhighlight lang="java"> |
// get the diagram | // get the diagram | ||
// ... | // ... | ||
Line 29: | Line 29: | ||
aProp.setPropertyValue("ErrorCategory", ChartErrorCategory.STANDARD_DEVIATION); | aProp.setPropertyValue("ErrorCategory", ChartErrorCategory.STANDARD_DEVIATION); | ||
aProp.setPropertyValue("ErrorIndicator", ChartErrorIndicatorType.TOP_AND_BOTTOM); | aProp.setPropertyValue("ErrorIndicator", ChartErrorIndicatorType.TOP_AND_BOTTOM); | ||
− | </ | + | </syntaxhighlight> |
{{PDL1}} | {{PDL1}} | ||
[[Category:Documentation/Developer's Guide/Charts]] | [[Category:Documentation/Developer's Guide/Charts]] |
Latest revision as of 19:33, 20 December 2020
Statistical properties like error indicators or regression curves can be applied. The regression curves can only be used for xy-diagrams that have tuples of values for each data point. The following example shows how to add a linear regression curve to an xy-diagram.
Additionally, the mean value line is displayed and error indicators for the standard deviation are applied.
// get the diagram // ... // get the properties of a single series XPropertySet aProp = maDiagram.getDataRowProperties(1) // set a linear regression aProp.setPropertyValue("RegressionCurves", ChartRegressionCurveType.LINEAR); // show a line at y = mean of the series' values aProp.setPropertyValue("MeanValue", new Boolean(true)); // add error indicators in both directions // with the length of the standard deviation aProp.setPropertyValue("ErrorCategory", ChartErrorCategory.STANDARD_DEVIATION); aProp.setPropertyValue("ErrorIndicator", ChartErrorIndicatorType.TOP_AND_BOTTOM);
Content on this page is licensed under the Public Documentation License (PDL). |