Difference between revisions of "Documentation/DevGuide/Charts/Statistics"
From Apache OpenOffice Wiki
< Documentation | DevGuide
m |
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
||
Line 7: | Line 7: | ||
|NextPage=Documentation/DevGuide/Charts/3-D Charts | |NextPage=Documentation/DevGuide/Charts/3-D Charts | ||
}} | }} | ||
− | {{DISPLAYTITLE:Statistics}} | + | {{Documentation/DevGuideLanguages|Documentation/DevGuide/Charts/{{SUBPAGENAME}}}} |
+ | {{DISPLAYTITLE:Statistics}} | ||
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. | 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. | ||
Revision as of 12:23, 15 May 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). |