Difference between revisions of "Documentation/DevGuide/Charts/Statistics"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Charts) |
m |
||
Line 11: | Line 11: | ||
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. | ||
− | + | <source lang="java"> | |
// get the diagram | // get the diagram | ||
// ... | // ... | ||
Line 28: | Line 28: | ||
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); | ||
− | + | </source> | |
{{PDL1}} | {{PDL1}} | ||
[[Category:Documentation/Developer's Guide/Charts]] | [[Category:Documentation/Developer's Guide/Charts]] |
Revision as of 12:39, 20 January 2009
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). |