/usr/share/qt5/doc/qtcharts/qml-qtcharts-xyseries.html is in qtcharts5-doc-html 5.9.5-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qxyseries.cpp -->
<title>XYSeries QML Type | Qt Charts 5.9</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
// loading style sheet breaks anchors that were jumped to before
// so force jumping to anchor again
setTimeout(function() {
var anchor = location.hash;
// need to jump to different anchor first (e.g. none)
location.hash = "#";
setTimeout(function() {
location.hash = anchor;
}, 0);
}, 0);
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<table><tr>
<td >Qt 5.9</td><td ><a href="qtcharts-index.html">Qt Charts</a></td><td ><a href="qtcharts-qmlmodule.html">QML Types</a></td><td >XYSeries QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.5 Reference Documentation</td>
</tr></table>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#methods">Methods</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">XYSeries QML Type</h1>
<span class="subtitle"></span>
<!-- $$$XYSeries-brief -->
<p>A base type for line, spline, and scatter series. <a href="#details">More...</a></p>
<!-- @@@XYSeries -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import QtCharts 2.2</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Instantiates:</td><td class="memItemRight bottomAlign"> <a href="qml-qtcharts-xyseries.html"><a href="qxyseries.html">QXYSeries</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></p>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qml-qtcharts-lineseries.html">LineSeries</a>, <a href="qml-qtcharts-scatterseries.html">ScatterSeries</a>, and <a href="qml-qtcharts-splineseries.html">SplineSeries</a></p>
</td></tr></table></div><ul>
<li><a href="qml-qtcharts-xyseries-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#axisAngular-prop">axisAngular</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#axisRadial-prop">axisRadial</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#axisX-prop">axisX</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#axisXTop-prop">axisXTop</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#axisY-prop">axisY</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#axisYRight-prop">axisYRight</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#color-prop">color</a></b></b> : color</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointLabelsClipping-prop">pointLabelsClipping</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointLabelsColor-prop">pointLabelsColor</a></b></b> : font</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointLabelsFont-prop">pointLabelsFont</a></b></b> : font</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointLabelsFormat-prop">pointLabelsFormat</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointLabelsVisible-prop">pointLabelsVisible</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointsVisible-prop">pointsVisible</a></b></b> : bool</li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#clicked-signal">clicked</a></b></b>(point <i>point</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#doubleClicked-signal">doubleClicked</a></b></b>(point <i>point</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#hovered-signal">hovered</a></b></b>(point <i>point</i>, bool <i>state</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointAdded-signal">pointAdded</a></b></b>(int <i>index</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointRemoved-signal">pointRemoved</a></b></b>(int <i>index</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointReplaced-signal">pointReplaced</a></b></b>(int <i>index</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointsRemoved-signal">pointsRemoved</a></b></b>(int <i>index</i>, int <i>count</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pointsReplaced-signal">pointsReplaced</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#pressed-signal">pressed</a></b></b>(point <i>point</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#released-signal">released</a></b></b>(point <i>point</i>)</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#append-method">append</a></b></b>(real <i>x</i>, real <i>y</i>)</li>
<li class="fn">QPointF <b><b><a href="qml-qtcharts-xyseries.html#at-method">at</a></b></b>(int <i>index</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#insert-method">insert</a></b></b>(int <i>index</i>, real <i>x</i>, real <i>y</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#remove-method-1">remove</a></b></b>(int <i>index</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#remove-method">remove</a></b></b>(real <i>x</i>, real <i>y</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#removePoints-method">removePoints</a></b></b>(int <i>index</i>, int <i>count</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-xyseries.html#replace-method">replace</a></b></b>(real <i>oldX</i>, real <i>oldY</i>, real <i>newX</i>, real <i>newY</i>)</li>
</ul>
<!-- $$$XYSeries-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<!-- @@@XYSeries -->
<h2>Property Documentation</h2>
<!-- $$$axisAngular -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisAngular-prop">
<td class="tblQmlPropNode"><p>
<a name="axisAngular-prop"></a><span class="name">axisAngular</span> : <span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The angular axis used for the series, drawn around the polar chart view.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#axisX-prop">axisX</a>.</p>
</div></div><!-- @@@axisAngular -->
<br/>
<!-- $$$axisRadial -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisRadial-prop">
<td class="tblQmlPropNode"><p>
<a name="axisRadial-prop"></a><span class="name">axisRadial</span> : <span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The radial axis used for the series, drawn inside the polar chart view.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#axisY-prop">axisY</a>.</p>
</div></div><!-- @@@axisRadial -->
<br/>
<!-- $$$axisX -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisX-prop">
<td class="tblQmlPropNode"><p>
<a name="axisX-prop"></a><span class="name">axisX</span> : <span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The x-axis used for the series. If you leave both axisX and <a href="qml-qtcharts-xyseries.html#axisXTop-prop">axisXTop</a> undefined, a value axis is created for the series.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#axisXTop-prop">axisXTop</a> and <a href="qml-qtcharts-valueaxis.html">ValueAxis</a>.</p>
</div></div><!-- @@@axisX -->
<br/>
<!-- $$$axisXTop -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisXTop-prop">
<td class="tblQmlPropNode"><p>
<a name="axisXTop-prop"></a><span class="name">axisXTop</span> : <span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The x-axis used for the series, drawn on top of the chart view.</p>
<p><b>Note: </b>You can only provide either <a href="qml-qtcharts-xyseries.html#axisX-prop">axisX</a> or axisXTop, not both.</p><p><b>See also </b><a href="qml-qtcharts-xyseries.html#axisX-prop">axisX</a>.</p>
</div></div><!-- @@@axisXTop -->
<br/>
<!-- $$$axisY -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisY-prop">
<td class="tblQmlPropNode"><p>
<a name="axisY-prop"></a><span class="name">axisY</span> : <span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The y-axis used for the series. If you leave both axisY and <a href="qml-qtcharts-xyseries.html#axisYRight-prop">axisYRight</a> undefined, a value axis is created for the series.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#axisYRight-prop">axisYRight</a> and <a href="qml-qtcharts-valueaxis.html">ValueAxis</a>.</p>
</div></div><!-- @@@axisY -->
<br/>
<!-- $$$axisYRight -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisYRight-prop">
<td class="tblQmlPropNode"><p>
<a name="axisYRight-prop"></a><span class="name">axisYRight</span> : <span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The y-axis used for the series, drawn to the right on the chart view.</p>
<p><b>Note: </b>You can only provide either <a href="qml-qtcharts-xyseries.html#axisY-prop">axisY</a> or axisYRight, not both.</p><p><b>See also </b><a href="qml-qtcharts-xyseries.html#axisY-prop">axisY</a>.</p>
</div></div><!-- @@@axisYRight -->
<br/>
<!-- $$$color -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="color-prop">
<td class="tblQmlPropNode"><p>
<a name="color-prop"></a><span class="name">color</span> : <span class="type">color</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The color of the series. This is the line (pen) color in case of <a href="qml-qtcharts-lineseries.html">LineSeries</a> or <a href="qml-qtcharts-splineseries.html">SplineSeries</a> and the fill (brush) color in case of <a href="qml-qtcharts-scatterseries.html">ScatterSeries</a> or <a href="qml-qtcharts-areaseries.html">AreaSeries</a>.</p>
</div></div><!-- @@@color -->
<br/>
<!-- $$$pointLabelsClipping -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointLabelsClipping-prop">
<td class="tblQmlPropNode"><p>
<a name="pointLabelsClipping-prop"></a><span class="name">pointLabelsClipping</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The clipping for data point labels. This property is <code>true</code> by default. The labels on the edge of the plot area are cut when clipping is enabled.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#pointLabelsVisible-prop">pointLabelsVisible</a>.</p>
</div></div><!-- @@@pointLabelsClipping -->
<br/>
<!-- $$$pointLabelsColor -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointLabelsColor-prop">
<td class="tblQmlPropNode"><p>
<a name="pointLabelsColor-prop"></a><span class="name">pointLabelsColor</span> : <span class="type">font</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The color used for data point labels. By default, the color is the color of the brush defined in theme for labels.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#pointLabelsFormat-prop">pointLabelsFormat</a>.</p>
</div></div><!-- @@@pointLabelsColor -->
<br/>
<!-- $$$pointLabelsFont -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointLabelsFont-prop">
<td class="tblQmlPropNode"><p>
<a name="pointLabelsFont-prop"></a><span class="name">pointLabelsFont</span> : <span class="type">font</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The font used for data point labels.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#pointLabelsFormat-prop">pointLabelsFormat</a>.</p>
</div></div><!-- @@@pointLabelsFont -->
<br/>
<!-- $$$pointLabelsFormat -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointLabelsFormat-prop">
<td class="tblQmlPropNode"><p>
<a name="pointLabelsFormat-prop"></a><span class="name">pointLabelsFormat</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The format used for showing labels with data points.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#pointLabelsVisible-prop">pointLabelsVisible</a>, <a href="qml-qtcharts-xyseries.html#pointLabelsFont-prop">pointLabelsFont</a>, and <a href="qml-qtcharts-xyseries.html#pointLabelsColor-prop">pointLabelsColor</a>.</p>
</div></div><!-- @@@pointLabelsFormat -->
<br/>
<!-- $$$pointLabelsVisible -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointLabelsVisible-prop">
<td class="tblQmlPropNode"><p>
<a name="pointLabelsVisible-prop"></a><span class="name">pointLabelsVisible</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The visibility of data point labels. This property is <code>false</code> by default.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#pointLabelsFormat-prop">pointLabelsFormat</a> and <a href="qml-qtcharts-xyseries.html#pointLabelsClipping-prop">pointLabelsClipping</a>.</p>
</div></div><!-- @@@pointLabelsVisible -->
<br/>
<!-- $$$pointsVisible -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointsVisible-prop">
<td class="tblQmlPropNode"><p>
<a name="pointsVisible-prop"></a><span class="name">pointsVisible</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Whether the data points are visible and should be drawn.</p>
</div></div><!-- @@@pointsVisible -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$clicked -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="clicked-signal">
<td class="tblQmlFuncNode"><p>
<a name="clicked-signal"></a><span class="name">clicked</span>(<span class="type">point</span> <i>point</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the user triggers a mouse event by clicking the point <i>point</i> in the chart. For example:</p>
<pre class="cpp">
LineSeries {
XYPoint { x: <span class="number">0</span>; y: <span class="number">0</span> }
XYPoint { x: <span class="number">1.1</span>; y: <span class="number">2.1</span> }
onClicked: console<span class="operator">.</span>log(<span class="string">"onClicked: "</span> <span class="operator">+</span> point<span class="operator">.</span>x <span class="operator">+</span> <span class="string">", "</span> <span class="operator">+</span> point<span class="operator">.</span>y);
}
</pre>
<p>The corresponding signal handler is <code>onClicked()</code>.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#pressed-signal">pressed()</a>, <a href="qml-qtcharts-xyseries.html#released-signal">released()</a>, and <a href="qml-qtcharts-xyseries.html#doubleClicked-signal">doubleClicked()</a>.</p>
</div></div><!-- @@@clicked -->
<br/>
<!-- $$$doubleClicked -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="doubleClicked-signal">
<td class="tblQmlFuncNode"><p>
<a name="doubleClicked-signal"></a><span class="name">doubleClicked</span>(<span class="type">point</span> <i>point</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the user double-clicks the data point <i>point</i> in the chart. The <i>point</i> is the point where the first press was triggered. For example:</p>
<pre class="cpp">
LineSeries {
XYPoint { x: <span class="number">0</span>; y: <span class="number">0</span> }
XYPoint { x: <span class="number">1.1</span>; y: <span class="number">2.1</span> }
onDoubleClicked: console<span class="operator">.</span>log(<span class="string">"onDoubleClicked: "</span> <span class="operator">+</span> point<span class="operator">.</span>x <span class="operator">+</span> <span class="string">", "</span> <span class="operator">+</span> point<span class="operator">.</span>y);
}
</pre>
<p>The corresponding signal handler is <code>onDoubleClicked()</code>.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#pressed-signal">pressed()</a>, <a href="qml-qtcharts-xyseries.html#released-signal">released()</a>, and <a href="qml-qtcharts-xyseries.html#clicked-signal">clicked()</a>.</p>
</div></div><!-- @@@doubleClicked -->
<br/>
<!-- $$$hovered -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="hovered-signal">
<td class="tblQmlFuncNode"><p>
<a name="hovered-signal"></a><span class="name">hovered</span>(<span class="type">point</span> <i>point</i>, <span class="type">bool</span> <i>state</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when a mouse is hovered over the point <i>point</i> in the chart. When the mouse moves over the point, <i>state</i> turns <code>true</code>, and when the mouse moves away again, it turns <code>false</code>.</p>
<p>The corresponding signal handler is <code>onHovered()</code>.</p>
</div></div><!-- @@@hovered -->
<br/>
<!-- $$$pointAdded -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointAdded-signal">
<td class="tblQmlFuncNode"><p>
<a name="pointAdded-signal"></a><span class="name">pointAdded</span>(<span class="type">int</span> <i>index</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when a point is added at the position specified by <i>index</i>.</p>
<p>The corresponding signal handler is <code>onPointAdded()</code>.</p>
</div></div><!-- @@@pointAdded -->
<br/>
<!-- $$$pointRemoved -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointRemoved-signal">
<td class="tblQmlFuncNode"><p>
<a name="pointRemoved-signal"></a><span class="name">pointRemoved</span>(<span class="type">int</span> <i>index</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when a point is removed from the position specified by <i>index</i>.</p>
<p>The corresponding signal handler is <code>onPointRemoved()</code>.</p>
</div></div><!-- @@@pointRemoved -->
<br/>
<!-- $$$pointReplaced -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointReplaced-signal">
<td class="tblQmlFuncNode"><p>
<a name="pointReplaced-signal"></a><span class="name">pointReplaced</span>(<span class="type">int</span> <i>index</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when a point is replaced at the position specified by <i>index</i>.</p>
<p>The corresponding signal handler is <code>onPointReplaced()</code>.</p>
</div></div><!-- @@@pointReplaced -->
<br/>
<!-- $$$pointsRemoved -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointsRemoved-signal">
<td class="tblQmlFuncNode"><p>
<a name="pointsRemoved-signal"></a><span class="name">pointsRemoved</span>(<span class="type">int</span> <i>index</i>, <span class="type">int</span> <i>count</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the number of points specified by <i>count</i> is removed starting at the position specified by <i>index</i>.</p>
<p>The corresponding signal handler is <code>onPointRemoved()</code>.</p>
</div></div><!-- @@@pointsRemoved -->
<br/>
<!-- $$$pointsReplaced -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pointsReplaced-signal">
<td class="tblQmlFuncNode"><p>
<a name="pointsReplaced-signal"></a><span class="name">pointsReplaced</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when all points are replaced with other points.</p>
<p>The corresponding signal handler is <code>onPointsReplaced()</code>.</p>
</div></div><!-- @@@pointsReplaced -->
<br/>
<!-- $$$pressed -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="pressed-signal">
<td class="tblQmlFuncNode"><p>
<a name="pressed-signal"></a><span class="name">pressed</span>(<span class="type">point</span> <i>point</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the user presses the data point <i>point</i> in the chart and holds down the mouse button. For example:</p>
<pre class="cpp">
LineSeries {
XYPoint { x: <span class="number">0</span>; y: <span class="number">0</span> }
XYPoint { x: <span class="number">1.1</span>; y: <span class="number">2.1</span> }
onPressed: console<span class="operator">.</span>log(<span class="string">"onPressed: "</span> <span class="operator">+</span> point<span class="operator">.</span>x <span class="operator">+</span> <span class="string">", "</span> <span class="operator">+</span> point<span class="operator">.</span>y);
}
</pre>
<p>The corresponding signal handler is <code>onPressed()</code>.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#clicked-signal">clicked()</a>, <a href="qml-qtcharts-xyseries.html#released-signal">released()</a>, and <a href="qml-qtcharts-xyseries.html#doubleClicked-signal">doubleClicked()</a>.</p>
</div></div><!-- @@@pressed -->
<br/>
<!-- $$$released -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="released-signal">
<td class="tblQmlFuncNode"><p>
<a name="released-signal"></a><span class="name">released</span>(<span class="type">point</span> <i>point</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the user releases the mouse press on the data point specified by <i>point</i>. For example:</p>
<pre class="cpp">
LineSeries {
XYPoint { x: <span class="number">0</span>; y: <span class="number">0</span> }
XYPoint { x: <span class="number">1.1</span>; y: <span class="number">2.1</span> }
onReleased: console<span class="operator">.</span>log(<span class="string">"onReleased: "</span> <span class="operator">+</span> point<span class="operator">.</span>x <span class="operator">+</span> <span class="string">", "</span> <span class="operator">+</span> point<span class="operator">.</span>y);
}
</pre>
<p>The corresponding signal handler is <code>onReleased()</code>.</p>
<p><b>See also </b><a href="qml-qtcharts-xyseries.html#pressed-signal">pressed()</a>, <a href="qml-qtcharts-xyseries.html#clicked-signal">clicked()</a>, and <a href="qml-qtcharts-xyseries.html#doubleClicked-signal">doubleClicked()</a>.</p>
</div></div><!-- @@@released -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$append -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="append-method">
<td class="tblQmlFuncNode"><p>
<a name="append-method"></a><span class="name">append</span>(<span class="type">real</span> <i>x</i>, <span class="type">real</span> <i>y</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Appends a point with the coordinates <i>x</i> and <i>y</i> to the series.</p>
</div></div><!-- @@@append -->
<br/>
<!-- $$$at -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="at-method">
<td class="tblQmlFuncNode"><p>
<a name="at-method"></a><span class="type">QPointF</span> <span class="name">at</span>(<span class="type">int</span> <i>index</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns the point at the position specified by <i>index</i>. Returns (0, 0) if the index is not valid.</p>
</div></div><!-- @@@at -->
<br/>
<!-- $$$insert -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="insert-method">
<td class="tblQmlFuncNode"><p>
<a name="insert-method"></a><span class="name">insert</span>(<span class="type">int</span> <i>index</i>, <span class="type">real</span> <i>x</i>, <span class="type">real</span> <i>y</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Inserts a point with the coordinates <i>x</i> and <i>y</i> to the position specified by <i>index</i> in the series. If the index is 0 or less than 0, the point is prepended to the list of points. If the index is equal to or greater than than the number of points in the series, the point is appended to the list of points.</p>
</div></div><!-- @@@insert -->
<br/>
<!-- $$$remove -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="remove-method-1">
<td class="tblQmlFuncNode"><p>
<a name="remove-method-1"></a><span class="name">remove</span>(<span class="type">int</span> <i>index</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Removes the point at the position specified by <i>index</i> from the series.</p>
</div></div><!-- @@@remove -->
<br/>
<!-- $$$remove -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="remove-method">
<td class="tblQmlFuncNode"><p>
<a name="remove-method"></a><span class="name">remove</span>(<span class="type">real</span> <i>x</i>, <span class="type">real</span> <i>y</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Removes the point with the coordinates <i>x</i> and <i>y</i> from the series. Does nothing if the point does not exist.</p>
</div></div><!-- @@@remove -->
<br/>
<!-- $$$removePoints -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="removePoints-method">
<td class="tblQmlFuncNode"><p>
<a name="removePoints-method"></a><span class="name">removePoints</span>(<span class="type">int</span> <i>index</i>, <span class="type">int</span> <i>count</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Removes the number of points specified by <i>count</i> from the series starting at the position specified by <i>index</i>.</p>
</div></div><!-- @@@removePoints -->
<br/>
<!-- $$$replace -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="replace-method">
<td class="tblQmlFuncNode"><p>
<a name="replace-method"></a><span class="name">replace</span>(<span class="type">real</span> <i>oldX</i>, <span class="type">real</span> <i>oldY</i>, <span class="type">real</span> <i>newX</i>, <span class="type">real</span> <i>newY</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Replaces the point with the coordinates <i>oldX</i> and <i>oldY</i> with the point with the coordinates <i>newX</i> and <i>newY</i>. Does nothing if the old point does not exist.</p>
</div></div><!-- @@@replace -->
<br/>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2017 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|