summaryrefslogtreecommitdiff
path: root/source/text/schart/01/type_xy.xhp
blob: b22e225046e6155db924175eb865dae091116528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
	
<!--
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 -->
 
	
<meta>
<topic id="textschart01type_xyxhp" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Chart Type XY</title>
<filename>/text/schart/01/type_xy.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id84231"><bookmark_value>scatter charts</bookmark_value>
<bookmark_value>XY charts</bookmark_value>
<bookmark_value>chart types;XY (scatter)</bookmark_value>
<bookmark_value>error indicators in charts</bookmark_value>
<bookmark_value>error bars in charts</bookmark_value>
<bookmark_value>averages in charts</bookmark_value>
<bookmark_value>statistics in charts</bookmark_value>
<bookmark_value>variances in charts</bookmark_value>
<bookmark_value>standard deviation in charts</bookmark_value>
</bookmark><comment>mw changed xy to XY (2x)</comment>
<paragraph role="heading" id="hd_id9346598" xml-lang="en-US" level="1"><variable id="type_xy"><link href="text/schart/01/type_xy.xhp">Chart Type XY (Scatter)</link>
</variable></paragraph>
<paragraph role="paragraph" id="par_id2003845" xml-lang="en-US">On the first page of the <link href="text/schart/01/wiz_chart_type.xhp">Chart Wizard</link> you can choose a chart type. </paragraph>
<section id="howtoget">
<embed href="text/schart/00/00000004.xhp#wiz"/>
</section>
<h2 id="hd_id7757194">XY (Scatter)</h2>
<paragraph role="paragraph" id="par_id5977965" xml-lang="en-US">An XY chart in its basic form is based on one data series consisting of a name, a list of x‑values, and a list of y‑values. Each value pair (x|y) is shown as a point in a coordinate system. The name of the data series is associated with the y‑values and shown in the legend.</paragraph>
<paragraph role="paragraph" id="par_id4381847" xml-lang="en-US">Choose an XY chart for the following example tasks:</paragraph>
<list type="ordered">
<listitem>
<paragraph role="paragraph" id="par_id1336710" xml-lang="en-US">scale the x‑axis</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id1221655" xml-lang="en-US">generate a parameter curve, for example a spiral</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id3397320" xml-lang="en-US">draw the graph of a function</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id7657399" xml-lang="en-US">explore the statistical association of quantitative variables</paragraph>
</listitem>
</list>
<paragraph role="paragraph" id="par_id8925138" xml-lang="en-US">Your XY chart may have more than one data series.</paragraph>
<h2 id="hd_id5461897">XY Chart Variants</h2>
<paragraph role="paragraph" id="par_id8919339" xml-lang="en-US">You can choose an XY chart variant on the first page of the <link href="text/schart/01/wiz_chart_type.xhp">Chart Wizard</link>, or by choosing <item type="menuitem">Format - Chart Type </item>for a chart in edit mode.</paragraph>
<paragraph role="paragraph" id="par_id4634235" xml-lang="en-US">The chart is created with default settings. After the chart is finished, you can edit its properties to change the appearance. Line styles and icons can be changed on the <emph>Line</emph> tab page of the data series properties dialog.</paragraph>
<paragraph role="paragraph" id="par_id5482039" xml-lang="en-US">Double-click any data point to open the <item type="menuitem">Data Series</item> dialog. In this dialog, you can change many properties of the data series.</paragraph>
<paragraph role="paragraph" id="par_id0805200810492449" xml-lang="en-US">For 2D charts, you can choose <item type="menuitem">Insert - Y Error Bars</item> to enable the display of error bars.</paragraph>
<paragraph role="paragraph" id="par_id6221198" xml-lang="en-US">You can enable the display of mean value lines and trend lines using commands on the Insert menu.</paragraph>
<h3 id="hd_id1393475">Points only</h3>
<paragraph role="paragraph" id="par_id6571550" xml-lang="en-US">Each data point is shown by an icon. %PRODUCTNAME uses default icons with different forms and colors for each data series. The default colors are set in <switchinline select="sys"><caseinline select="MAC"><item type="menuitem">%PRODUCTNAME - Preferences</item></caseinline><defaultinline><item type="menuitem">Tools - Options</item></defaultinline></switchinline><item type="menuitem"> - Charts - Default Colors</item>. </paragraph>
<h3 id="hd_id5376140">Lines Only</h3>
<paragraph role="paragraph" id="par_id4408093" xml-lang="en-US">This variant draws straight lines from one data point to the next. The data points are not shown by icons. </paragraph>
<paragraph role="paragraph" id="par_id7261268" xml-lang="en-US">The drawing order is the same as the order in the data series. Mark <emph>Sort by X Values</emph> to draw the lines in the order of the x values. This sorting applies only to the chart, not to the data in the table.</paragraph>
<h3 id="hd_id6949369">Points and Lines</h3>
<paragraph role="paragraph" id="par_id9611499" xml-lang="en-US">This variant shows points and lines at the same time.</paragraph>
<h3 id="hd_id6765953">3D Lines</h3>
<paragraph role="paragraph" id="par_id7422711" xml-lang="en-US">The lines are shown like tapes. The data points are not shown by icons. In the finished chart choose <link href="text/schart/01/three_d_view.xhp">3D View</link> to set properties like illumination and angle of view.</paragraph>
<h3 id="hd_id239265">Smooth Lines</h3>
<paragraph role="paragraph" id="par_id7957396" xml-lang="en-US">Choose <emph>Smooth</emph> from the <emph>Line type</emph> dropdown to draw curves instead of straight line segments.<comment>i80587</comment></paragraph>
<paragraph role="paragraph" id="par_id1202124" xml-lang="en-US">Click <emph>Properties</emph> to set details for the curves.</paragraph>
<paragraph role="paragraph" id="par_id5989562" xml-lang="en-US">
<emph>Cubic Spline</emph> interpolates your data points with polynomials of degree 3. The transitions between the polynomial pieces are smooth, having the same slope and curvature. </paragraph>
<paragraph role="paragraph" id="par_id6128421" xml-lang="en-US">The <emph>Resolution</emph> determines how many line segments are calculated to draw a piece of polynomial between two data points. You can see the intermediate points if you click any data point.</paragraph>
<paragraph role="paragraph" id="par_id9280373" xml-lang="en-US">
<emph>B-Spline</emph> uses a parametric, interpolating B-spline curve. Those curves are built piecewise from polynomials. The <emph>Degree of polynomials</emph> sets the degree of these polynomials.</paragraph>
<h3 id="hd_id5031251">Stepped Lines</h3>
<paragraph role="paragraph" id="par_id1449076" xml-lang="en-US">Choose <emph>Stepped</emph> from the <emph>Line type</emph> dropdown to draw lines which step from point to point instead of straight line segments.</paragraph>
<paragraph role="paragraph" id="par_id1202125" xml-lang="en-US">Click <emph>Properties</emph> to set details for the curves.</paragraph>
<paragraph role="paragraph" id="par_id9811476" xml-lang="en-US">There are 4 different step types:</paragraph>
<list type="unordered">
<listitem>
<paragraph role="paragraph" id="par_id9078573" xml-lang="en-US"><image id="img_id9078573" src="chart2/res/step_start_30.png" width="30px" height="30px"><alt xml-lang="en-US" id="alt_id9078573">Start step icon</alt></image></paragraph>
<paragraph role="paragraph" id="par_id9047365" xml-lang="en-US">Start with horizontal line and step up vertically at the end.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id05495673" xml-lang="en-US"><image id="img_id05495673" src="chart2/res/step_end_30.png" width="30px" height="30px"><alt xml-lang="en-US" id="alt_id05495673">End step icon</alt></image></paragraph>
<paragraph role="paragraph" id="par_id439028" xml-lang="en-US">Start to step up vertically and end with horizontal line.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id9673426" xml-lang="en-US"><image id="img_id9673426" src="chart2/res/step_center_x_30.png" width="30px" height="30px"><alt xml-lang="en-US" id="alt_id9673426">Center X icon</alt></image></paragraph>
<paragraph role="paragraph" id="par_id4069483" xml-lang="en-US">Start with horizontal line, step up vertically in the middle of the X values and end with horizontal line.</paragraph>
</listitem>
<listitem>
<paragraph role="paragraph" id="par_id56635427" xml-lang="en-US"><image id="img_id56635427" src="chart2/res/step_center_y_30.png" width="30px" height="30px"><alt xml-lang="en-US" id="alt_id56635427">Center Y icon</alt></image></paragraph>
<paragraph role="paragraph" id="par_id0679473" xml-lang="en-US">Start to step up vertically to the middle of the Y values, draw a horizontal line and finish by stepping vertically to the end.</paragraph>
</listitem>
</list>
<section id="relatedtopics">
<embed href="text/shared/guide/chart_insert.xhp#chart_insert"/>
<embed href="text/schart/01/wiz_chart_type.xhp#wiz_chart_type"/>
<embed href="text/schart/01/wiz_data_range.xhp#wiz_data_range"/>
<embed href="text/schart/01/wiz_data_series.xhp#wiz_data_series"/>
<embed href="text/schart/01/wiz_chart_elements.xhp#wiz_chart_elements"/>
</section>
</body>
</helpdocument>