Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > 19952c5e751bf7e3108c3c59625b0f35 > files > 182

qtcharts5-doc-5.9.4-1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- declarativechart.cpp -->
  <title>ChartView 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 >ChartView QML Type</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 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">ChartView QML Type</h1>
<span class="subtitle"></span>
<!-- $$$ChartView-brief -->
<p>Manages the graphical representation of the chart's series, legends, and axes. <a href="#details">More...</a></p>
<!-- @@@ChartView -->
<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></table></div><ul>
<li><a href="qml-qtcharts-chartview-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-chartview.html#animationDuration-prop">animationDuration</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#animationEasingCurve-prop">animationEasingCurve</a></b></b> : easing</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#animationOptions-prop">animationOptions</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#axes-prop">axes</a></b></b> : list&lt;AbstractAxis&gt;</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#backgroundColor-prop">backgroundColor</a></b></b> : color</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#backgroundRoundness-prop">backgroundRoundness</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#count-prop">count</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#dropShadowEnabled-prop">dropShadowEnabled</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#legend-prop">legend</a></b></b> : Legend</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#locale-prop">locale</a></b></b> : locale</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#localizeNumbers-prop">localizeNumbers</a></b></b> : bool</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#margins-prop">margins</a></b></b> : Margins</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#plotArea-prop">plotArea</a></b></b> : rect</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#plotAreaColor-prop">plotAreaColor</a></b></b> : color</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#theme-prop">theme</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#title-prop">title</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#titleColor-prop">titleColor</a></b></b> : color</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#titleFont-prop">titleFont</a></b></b> : font</li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<ul>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#seriesAdded-signal">seriesAdded</a></b></b>(AbstractSeries <i>series</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#seriesRemoved-signal">seriesRemoved</a></b></b>(AbstractSeries <i>series</i>)</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">Axis <b><b><a href="qml-qtcharts-chartview.html#axisX-method">axisX</a></b></b>(AbstractSeries <i>series</i>)</li>
<li class="fn">Axis <b><b><a href="qml-qtcharts-chartview.html#axisY-method">axisY</a></b></b>(AbstractSeries <i>series</i>)</li>
<li class="fn">AbstractSeries <b><b><a href="qml-qtcharts-chartview.html#createSeries-method">createSeries</a></b></b>(enumeration <i>type</i>, string <i>name</i>, AbstractAxis <i>axisX</i>, AbstractAxis <i>axisY</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#isZoomed-method">isZoomed</a></b></b>()</li>
<li class="fn">point <b><b><a href="qml-qtcharts-chartview.html#mapToPosition-method">mapToPosition</a></b></b>(point <i>value</i>, AbstractSeries <i>series</i>)</li>
<li class="fn">point <b><b><a href="qml-qtcharts-chartview.html#mapToValue-method">mapToValue</a></b></b>(point <i>position</i>, AbstractSeries <i>series</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#removeAllSeries-method">removeAllSeries</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#removeSeries-method">removeSeries</a></b></b>(AbstractSeries <i>series</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#scrollDown-method">scrollDown</a></b></b>(real <i>pixels</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#scrollLeft-method">scrollLeft</a></b></b>(real <i>pixels</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#scrollRight-method">scrollRight</a></b></b>(real <i>pixels</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#scrollUp-method">scrollUp</a></b></b>(real <i>pixels</i>)</li>
<li class="fn">AbstractSeries <b><b><a href="qml-qtcharts-chartview.html#series-method-1">series</a></b></b>(string <i>name</i>)</li>
<li class="fn">AbstractSeries <b><b><a href="qml-qtcharts-chartview.html#series-method">series</a></b></b>(int <i>index</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#setAxisX-method">setAxisX</a></b></b>(AbstractAxis <i>axis</i>, AbstractSeries <i>series</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#setAxisY-method">setAxisY</a></b></b>(AbstractAxis <i>axis</i>, AbstractSeries <i>series</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#zoom-method">zoom</a></b></b>(real <i>factor</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#zoomIn-method-1">zoomIn</a></b></b>(rect <i>rectangle</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#zoomIn-method">zoomIn</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#zoomOut-method">zoomOut</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtcharts-chartview.html#zoomReset-method">zoomReset</a></b></b>()</li>
</ul>
<!-- $$$ChartView-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>The <a href="qml-qtcharts-chartview.html">ChartView</a> type displays different series types as charts.</p>
<p class="centerAlign"><img src="images/examples_qmlpiechart.png" alt="" /></p><p>The following QML code shows how to create a simple chart with one pie series:</p>
<pre class="qml">

  import QtQuick 2.0
  import QtCharts 2.0

  <span class="type"><a href="qml-qtcharts-chartview.html">ChartView</a></span> {
      <span class="name">width</span>: <span class="number">400</span>
      <span class="name">height</span>: <span class="number">300</span>
      <span class="name">theme</span>: <span class="name">ChartView</span>.<span class="name">ChartThemeBrownSand</span>
      <span class="name">antialiasing</span>: <span class="number">true</span>

      <span class="type"><a href="qml-qtcharts-pieseries.html">PieSeries</a></span> {
          <span class="name">id</span>: <span class="name">pieSeries</span>
          <span class="type"><a href="qml-qtcharts-pieslice.html">PieSlice</a></span> { <span class="name">label</span>: <span class="string">&quot;eaten&quot;</span>; <span class="name">value</span>: <span class="number">94.9</span> }
          <span class="type"><a href="qml-qtcharts-pieslice.html">PieSlice</a></span> { <span class="name">label</span>: <span class="string">&quot;not yet eaten&quot;</span>; <span class="name">value</span>: <span class="number">5.1</span> }
      }
  }

</pre>
<!-- @@@ChartView -->
<h2>Property Documentation</h2>
<!-- $$$animationDuration -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="animationDuration-prop">
<td class="tblQmlPropNode"><p>
<a name="animationDuration-prop"></a><span class="name">animationDuration</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The duration of the animation for the chart.</p>
</div></div><!-- @@@animationDuration -->
<br/>
<!-- $$$animationEasingCurve -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="animationEasingCurve-prop">
<td class="tblQmlPropNode"><p>
<a name="animationEasingCurve-prop"></a><span class="name">animationEasingCurve</span> : <span class="type">easing</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The easing curve of the animation for the chart.</p>
</div></div><!-- @@@animationEasingCurve -->
<br/>
<!-- $$$animationOptions -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="animationOptions-prop">
<td class="tblQmlPropNode"><p>
<a name="animationOptions-prop"></a><span class="name">animationOptions</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The animations enabled in the chart:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>ChartView.NoAnimation</code></td><td class="topAlign">Animation is disabled in the chart. This is the default value.</td></tr>
<tr><td class="topAlign"><code>ChartView.GridAxisAnimations</code></td><td class="topAlign">Grid axis animation is enabled in the chart.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesAnimations</code></td><td class="topAlign">Series animation is enabled in the chart.</td></tr>
<tr><td class="topAlign"><code>ChartView.AllAnimations</code></td><td class="topAlign">All animation types are enabled in the chart.</td></tr>
</table></div>
</div></div><!-- @@@animationOptions -->
<br/>
<!-- $$$axes -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axes-prop">
<td class="tblQmlPropNode"><p>
<a name="axes-prop"></a><span class="name">axes</span> : <span class="type">list</span>&lt;<span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span>&gt;</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The axes of the chart.</p>
</div></div><!-- @@@axes -->
<br/>
<!-- $$$backgroundColor -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="backgroundColor-prop">
<td class="tblQmlPropNode"><p>
<a name="backgroundColor-prop"></a><span class="name">backgroundColor</span> : <span class="type">color</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The color of the chart's background. By default, the background color is specified by the chart theme.</p>
<p><b>See also </b><a href="qml-qtcharts-chartview.html#theme-prop">theme</a>.</p>
</div></div><!-- @@@backgroundColor -->
<br/>
<!-- $$$backgroundRoundness -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="backgroundRoundness-prop">
<td class="tblQmlPropNode"><p>
<a name="backgroundRoundness-prop"></a><span class="name">backgroundRoundness</span> : <span class="type">real</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The diameter of the rounding circle at the corners of the chart background.</p>
</div></div><!-- @@@backgroundRoundness -->
<br/>
<!-- $$$count -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="count-prop">
<td class="tblQmlPropNode"><p>
<a name="count-prop"></a><span class="name">count</span> : <span class="type">int</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The number of series added to the chart.</p>
</div></div><!-- @@@count -->
<br/>
<!-- $$$dropShadowEnabled -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="dropShadowEnabled-prop">
<td class="tblQmlPropNode"><p>
<a name="dropShadowEnabled-prop"></a><span class="name">dropShadowEnabled</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Whether the background drop shadow effect is enabled.</p>
<p>If set to <code>true</code>, the background drop shadow effect is enabled. If set to <code>false</code>, it is disabled.</p>
</div></div><!-- @@@dropShadowEnabled -->
<br/>
<!-- $$$legend -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="legend-prop">
<td class="tblQmlPropNode"><p>
<a name="legend-prop"></a><span class="name">legend</span> : <span class="type"><a href="qml-qtcharts-legend.html">Legend</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The legend of the chart. The legend lists all the series, pie slices, and bar sets added to the chart.</p>
</div></div><!-- @@@legend -->
<br/>
<!-- $$$locale -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="locale-prop">
<td class="tblQmlPropNode"><p>
<a name="locale-prop"></a><span class="name">locale</span> : <span class="type">locale</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The locale used to format various chart labels.</p>
<p>Labels are localized only when <a href="qml-qtcharts-chartview.html#localizeNumbers-prop">localizeNumbers</a> is <code>true</code>, except for <a href="qml-qtcharts-datetimeaxis.html">DateTimeAxis</a> labels, which always use the QLocale set with this property.</p>
<p>Defaults to the application default locale at the time when the chart is constructed.</p>
<p>This QML property was introduced in  QtCharts 2.0.</p>
<p><b>See also </b><a href="qml-qtcharts-chartview.html#localizeNumbers-prop">localizeNumbers</a>.</p>
</div></div><!-- @@@locale -->
<br/>
<!-- $$$localizeNumbers -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="localizeNumbers-prop">
<td class="tblQmlPropNode"><p>
<a name="localizeNumbers-prop"></a><span class="name">localizeNumbers</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Whether numbers are localized.</p>
<p>When <code>true</code>, all generated numbers appearing in various series and axis labels will be localized using the QLocale set with the <a href="qml-qtcharts-chartview.html#locale-prop">locale</a> property. When <code>false</code>, the <i>C</i> locale is always used. Defaults to <code>false</code>.</p>
<p><b>Note: </b>This property does not affect <a href="qml-qtcharts-datetimeaxis.html">DateTimeAxis</a> labels, which always use the QLocale set with the locale property.</p><p>This QML property was introduced in  QtCharts 2.0.</p>
<p><b>See also </b><a href="qml-qtcharts-chartview.html#locale-prop">locale</a>.</p>
</div></div><!-- @@@localizeNumbers -->
<br/>
<!-- $$$margins -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="margins-prop">
<td class="tblQmlPropNode"><p>
<a name="margins-prop"></a><span class="name">margins</span> : <span class="type"><a href="qml-qtcharts-margins.html">Margins</a></span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The minimum margins allowed between the edge of the chart rectangle and the plot area. The margins are used for drawing the title, axes, and legend.</p>
</div></div><!-- @@@margins -->
<br/>
<!-- $$$plotArea -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="plotArea-prop">
<td class="tblQmlPropNode"><p>
<a name="plotArea-prop"></a><span class="name">plotArea</span> : <span class="type">rect</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The rectangle within which the chart is drawn.</p>
<p>The plot area does not include the area defined by margins.</p>
<p><b>See also </b><a href="qml-qtcharts-chartview.html#margins-prop">margins</a>.</p>
</div></div><!-- @@@plotArea -->
<br/>
<!-- $$$plotAreaColor -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="plotAreaColor-prop">
<td class="tblQmlPropNode"><p>
<a name="plotAreaColor-prop"></a><span class="name">plotAreaColor</span> : <span class="type">color</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The color of the background of the chart's plot area. By default, the plot area background uses the chart's background color, which is specified by the chart theme.</p>
<p><b>See also </b><a href="qml-qtcharts-chartview.html#backgroundColor-prop">backgroundColor</a> and <a href="qml-qtcharts-chartview.html#theme-prop">theme</a>.</p>
</div></div><!-- @@@plotAreaColor -->
<br/>
<!-- $$$theme -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="theme-prop">
<td class="tblQmlPropNode"><p>
<a name="theme-prop"></a><span class="name">theme</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The theme used by the chart.</p>
<p>A theme is a built-in collection of UI style related settings applied to all the visual elements of a chart, such as colors, pens, brushes, and fonts of series, as well as axes, title, and legend. The <a href="qtcharts-qmloscilloscope-example.html">Qml Oscilloscope</a> example illustrates how to set a theme.</p>
<p><b>Note: </b>Changing the theme will overwrite all customizations previously applied to the series.</p><p>The following values are supported:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>ChartView.ChartThemeLight</code></td><td class="topAlign">The light theme, which is the default theme.</td></tr>
<tr><td class="topAlign"><code>ChartView.ChartThemeBlueCerulean</code></td><td class="topAlign">The cerulean blue theme.</td></tr>
<tr><td class="topAlign"><code>ChartView.ChartThemeDark</code></td><td class="topAlign">The dark theme.</td></tr>
<tr><td class="topAlign"><code>ChartView.ChartThemeBrownSand</code></td><td class="topAlign">The sand brown theme.</td></tr>
<tr><td class="topAlign"><code>ChartView.ChartThemeBlueNcs</code></td><td class="topAlign">The natural color system (NCS) blue theme.</td></tr>
<tr><td class="topAlign"><code>ChartView.ChartThemeHighContrast</code></td><td class="topAlign">The high contrast theme.</td></tr>
<tr><td class="topAlign"><code>ChartView.ChartThemeBlueIcy</code></td><td class="topAlign">The icy blue theme.</td></tr>
<tr><td class="topAlign"><code>ChartView.ChartThemeQt</code></td><td class="topAlign">The Qt theme.</td></tr>
</table></div>
</div></div><!-- @@@theme -->
<br/>
<!-- $$$title -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="title-prop">
<td class="tblQmlPropNode"><p>
<a name="title-prop"></a><span class="name">title</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The title is shown as a headline on top of the chart. Chart titles support HTML formatting.</p>
<p><b>See also </b><a href="qml-qtcharts-chartview.html#titleColor-prop">titleColor</a>.</p>
</div></div><!-- @@@title -->
<br/>
<!-- $$$titleColor -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="titleColor-prop">
<td class="tblQmlPropNode"><p>
<a name="titleColor-prop"></a><span class="name">titleColor</span> : <span class="type">color</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The color of the title text.</p>
</div></div><!-- @@@titleColor -->
<br/>
<!-- $$$titleFont -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="titleFont-prop">
<td class="tblQmlPropNode"><p>
<a name="titleFont-prop"></a><span class="name">titleFont</span> : <span class="type">font</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The title font of the chart.</p>
<p>For more information, see font.</p>
</div></div><!-- @@@titleFont -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$seriesAdded -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="seriesAdded-signal">
<td class="tblQmlFuncNode"><p>
<a name="seriesAdded-signal"></a><span class="name">seriesAdded</span>(<span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the series <i>series</i> is added to the chart.</p>
</div></div><!-- @@@seriesAdded -->
<br/>
<!-- $$$seriesRemoved -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="seriesRemoved-signal">
<td class="tblQmlFuncNode"><p>
<a name="seriesRemoved-signal"></a><span class="name">seriesRemoved</span>(<span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the series <i>series</i> is removed from the chart. The series object becomes invalid when the signal handler completes.</p>
</div></div><!-- @@@seriesRemoved -->
<br/>
<h2>Method Documentation</h2>
<!-- $$$axisX -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisX-method">
<td class="tblQmlFuncNode"><p>
<a name="axisX-method"></a><span class="type">Axis</span> <span class="name">axisX</span>(<span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The x-axis of the series.</p>
</div></div><!-- @@@axisX -->
<br/>
<!-- $$$axisY -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="axisY-method">
<td class="tblQmlFuncNode"><p>
<a name="axisY-method"></a><span class="type">Axis</span> <span class="name">axisY</span>(<span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The y-axis of the series.</p>
</div></div><!-- @@@axisY -->
<br/>
<!-- $$$createSeries -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="createSeries-method">
<td class="tblQmlFuncNode"><p>
<a name="createSeries-method"></a><span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <span class="name">createSeries</span>(<span class="type">enumeration</span> <i>type</i>, <span class="type">string</span> <i>name</i>, <span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span> <i>axisX</i>, <span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span> <i>axisY</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Adds a series of the type <i>type</i> to the chart with the name <i>name</i> and, optionally, the axes <i>axisX</i> and <i>axisY</i>. For example:</p>
<pre class="cpp">

  <span class="comment">// lineSeries is a LineSeries object that has already been added to the ChartView; re-use its axes</span>
  var myAxisX <span class="operator">=</span> chartView<span class="operator">.</span>axisX(lineSeries);
  var myAxisY <span class="operator">=</span> chartView<span class="operator">.</span>axisY(lineSeries);
  var scatter <span class="operator">=</span> chartView<span class="operator">.</span>createSeries(ChartView<span class="operator">.</span>SeriesTypeScatter<span class="operator">,</span> <span class="string">&quot;scatter series&quot;</span><span class="operator">,</span> myAxisX<span class="operator">,</span> myAxisY);

</pre>
<p>The following enumeration values can be used as values of <i>type</i>:</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeLine</code></td><td class="topAlign">A line series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeArea</code></td><td class="topAlign">An area series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeBar</code></td><td class="topAlign">A bar series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeStackedBar</code></td><td class="topAlign">A stacked bar series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypePercentBar</code></td><td class="topAlign">A percent bar series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeBoxPlot</code></td><td class="topAlign">A box plot series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeCandlestick</code></td><td class="topAlign">A candlestick series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypePie</code></td><td class="topAlign">A pie series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeScatter</code></td><td class="topAlign">A scatter series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeSpline</code></td><td class="topAlign">A spline series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeHorizontalBar</code></td><td class="topAlign">A horizontal bar series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeHorizontalStackedBar</code></td><td class="topAlign">A horizontal stacked bar series.</td></tr>
<tr><td class="topAlign"><code>ChartView.SeriesTypeHorizontalPercentBar</code></td><td class="topAlign">A horizontal percent bar series.</td></tr>
</table></div>
</div></div><!-- @@@createSeries -->
<br/>
<!-- $$$isZoomed -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="isZoomed-method">
<td class="tblQmlFuncNode"><p>
<a name="isZoomed-method"></a><span class="name">isZoomed</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns <code>true</code> if any series has a zoomed domain.</p>
</div></div><!-- @@@isZoomed -->
<br/>
<!-- $$$mapToPosition -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="mapToPosition-method">
<td class="tblQmlFuncNode"><p>
<a name="mapToPosition-method"></a><span class="type">point</span> <span class="name">mapToPosition</span>(<span class="type">point</span> <i>value</i>, <span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns the position in the chart of the value <i>value</i> in the series <i>series</i>.</p>
</div></div><!-- @@@mapToPosition -->
<br/>
<!-- $$$mapToValue -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="mapToValue-method">
<td class="tblQmlFuncNode"><p>
<a name="mapToValue-method"></a><span class="type">point</span> <span class="name">mapToValue</span>(<span class="type">point</span> <i>position</i>, <span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns the value in the series <i>series</i> located at the position <i>position</i> in the chart.</p>
</div></div><!-- @@@mapToValue -->
<br/>
<!-- $$$removeAllSeries -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="removeAllSeries-method">
<td class="tblQmlFuncNode"><p>
<a name="removeAllSeries-method"></a><span class="name">removeAllSeries</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Removes all series from the chart and permanently deletes all the series objects.</p>
</div></div><!-- @@@removeAllSeries -->
<br/>
<!-- $$$removeSeries -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="removeSeries-method">
<td class="tblQmlFuncNode"><p>
<a name="removeSeries-method"></a><span class="name">removeSeries</span>(<span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Removes the series <i>series</i> from the chart and permanently deletes the series object.</p>
</div></div><!-- @@@removeSeries -->
<br/>
<!-- $$$scrollDown -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="scrollDown-method">
<td class="tblQmlFuncNode"><p>
<a name="scrollDown-method"></a><span class="name">scrollDown</span>(<span class="type">real</span> <i>pixels</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Scrolls down by the number of pixels specified by <i>pixels</i>. This is a convenience method suitable for key navigation, for example.</p>
</div></div><!-- @@@scrollDown -->
<br/>
<!-- $$$scrollLeft -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="scrollLeft-method">
<td class="tblQmlFuncNode"><p>
<a name="scrollLeft-method"></a><span class="name">scrollLeft</span>(<span class="type">real</span> <i>pixels</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Scrolls to left by the number of pixels specified by <i>pixels</i>. This is a convenience method suitable for key navigation, for example.</p>
</div></div><!-- @@@scrollLeft -->
<br/>
<!-- $$$scrollRight -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="scrollRight-method">
<td class="tblQmlFuncNode"><p>
<a name="scrollRight-method"></a><span class="name">scrollRight</span>(<span class="type">real</span> <i>pixels</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Scrolls to right by by the number of pixels specified by <i>pixels</i>. This is a convenience method suitable for key navigation, for example.</p>
</div></div><!-- @@@scrollRight -->
<br/>
<!-- $$$scrollUp -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="scrollUp-method">
<td class="tblQmlFuncNode"><p>
<a name="scrollUp-method"></a><span class="name">scrollUp</span>(<span class="type">real</span> <i>pixels</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Scrolls up by the number of pixels specified by <i>pixels</i>. This is a convenience method suitable for key navigation, for example.</p>
</div></div><!-- @@@scrollUp -->
<br/>
<!-- $$$series -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="series-method-1">
<td class="tblQmlFuncNode"><p>
<a name="series-method-1"></a><span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <span class="name">series</span>(<span class="type">string</span> <i>name</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns the first series in the chart with the name <i>name</i>. If there is no series with that name, returns null.</p>
</div></div><!-- @@@series -->
<br/>
<!-- $$$series -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="series-method">
<td class="tblQmlFuncNode"><p>
<a name="series-method"></a><span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <span class="name">series</span>(<span class="type">int</span> <i>index</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Returns the series with the index <i>index</i> on the chart. Together with the <a href="qml-qtcharts-chartview.html#count-prop">count</a> property of the chart, this enables looping through the series of a chart.</p>
<p><b>See also </b><a href="qml-qtcharts-chartview.html#count-prop">count</a>.</p>
</div></div><!-- @@@series -->
<br/>
<!-- $$$setAxisX -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="setAxisX-method">
<td class="tblQmlFuncNode"><p>
<a name="setAxisX-method"></a><span class="name">setAxisX</span>(<span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span> <i>axis</i>, <span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Sets the x-axis of the series.</p>
</div></div><!-- @@@setAxisX -->
<br/>
<!-- $$$setAxisY -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="setAxisY-method">
<td class="tblQmlFuncNode"><p>
<a name="setAxisY-method"></a><span class="name">setAxisY</span>(<span class="type"><a href="qml-qtcharts-abstractaxis.html">AbstractAxis</a></span> <i>axis</i>, <span class="type"><a href="qml-qtcharts-abstractseries.html">AbstractSeries</a></span> <i>series</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Sets the y-axis of the series.</p>
</div></div><!-- @@@setAxisY -->
<br/>
<!-- $$$zoom -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="zoom-method">
<td class="tblQmlFuncNode"><p>
<a name="zoom-method"></a><span class="name">zoom</span>(<span class="type">real</span> <i>factor</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Zooms into the chart by the custom factor <i>factor</i>.</p>
<p>A factor over 1.0 zooms into the view in and a factor between 0.0 and 1.0 zooms out of it.</p>
</div></div><!-- @@@zoom -->
<br/>
<!-- $$$zoomIn -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="zoomIn-method-1">
<td class="tblQmlFuncNode"><p>
<a name="zoomIn-method-1"></a><span class="name">zoomIn</span>(<span class="type">rect</span> <i>rectangle</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Zooms into the view to a maximum level at which the rectangle <i>rectangle</i> is still fully visible.</p>
<p><b>Note: </b>This is not supported for polar charts.</p></div></div><!-- @@@zoomIn -->
<br/>
<!-- $$$zoomIn -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="zoomIn-method">
<td class="tblQmlFuncNode"><p>
<a name="zoomIn-method"></a><span class="name">zoomIn</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Zooms into the view by a factor of two.</p>
</div></div><!-- @@@zoomIn -->
<br/>
<!-- $$$zoomOut -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="zoomOut-method">
<td class="tblQmlFuncNode"><p>
<a name="zoomOut-method"></a><span class="name">zoomOut</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Zooms out of the view by a factor of two.</p>
</div></div><!-- @@@zoomOut -->
<br/>
<!-- $$$zoomReset -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="zoomReset-method">
<td class="tblQmlFuncNode"><p>
<a name="zoomReset-method"></a><span class="name">zoomReset</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Resets the series domains to what they were before any zoom method was called.</p>
<p><b>Note: </b>This will also reset scrolling and explicit axis range settings specified between the first zoom operation and calling this method. If no zoom operation has been performed, this method does nothing.</p></div></div><!-- @@@zoomReset -->
<br/>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</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>