Sophie

Sophie

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

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" />
<!-- qabstractbarseries.cpp -->
  <title>AbstractBarSeries 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 >AbstractBarSeries 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">AbstractBarSeries QML Type</h1>
<span class="subtitle"></span>
<!-- $$$AbstractBarSeries-brief -->
<p>An abstract parent type for all bar series types. <a href="#details">More...</a></p>
<!-- @@@AbstractBarSeries -->
<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-abstractbarseries.html"><a href="qabstractbarseries.html">QAbstractBarSeries</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-barseries.html">BarSeries</a>, <a href="qml-qtcharts-horizontalbarseries.html">HorizontalBarSeries</a>, <a href="qml-qtcharts-horizontalpercentbarseries.html">HorizontalPercentBarSeries</a>, <a href="qml-qtcharts-horizontalstackedbarseries.html">HorizontalStackedBarSeries</a>, <a href="qml-qtcharts-percentbarseries.html">PercentBarSeries</a>, and <a href="qml-qtcharts-stackedbarseries.html">StackedBarSeries</a></p>
</td></tr></table></div><ul>
<li><a href="qml-qtcharts-abstractbarseries-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-abstractbarseries.html#axisX-prop">axisX</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#axisXTop-prop">axisXTop</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#axisY-prop">axisY</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#axisYRight-prop">axisYRight</a></b></b> : AbstractAxis</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#barWidth-prop">barWidth</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#count-prop">count</a></b></b> : int</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#labelsAngle-prop">labelsAngle</a></b></b> : real</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#labelsFormat-prop">labelsFormat</a></b></b> : string</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#labelsPosition-prop">labelsPosition</a></b></b> : enumeration</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#labelsVisible-prop">labelsVisible</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-abstractbarseries.html#barsetsAdded-signal">barsetsAdded</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#barsetsRemoved-signal">barsetsRemoved</a></b></b>()</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#clicked-signal">clicked</a></b></b>(int <i>index</i>, BarSet <i>barset</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#doubleClicked-signal">doubleClicked</a></b></b>(int <i>index</i>, BarSet <i>barset</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#hovered-signal">hovered</a></b></b>(bool <i>status</i>, int <i>index</i>, BarSet <i>barset</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#pressed-signal">pressed</a></b></b>(int <i>index</i>, BarSet <i>barset</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#released-signal">released</a></b></b>(int <i>index</i>, BarSet <i>barset</i>)</li>
</ul>
<a name="methods"></a>
<h2 id="methods">Methods</h2>
<ul>
<li class="fn">BarSet <b><b><a href="qml-qtcharts-abstractbarseries.html#append-method">append</a></b></b>(string <i>label</i>, VariantList <i>values</i>)</li>
<li class="fn">BarSet <b><b><a href="qml-qtcharts-abstractbarseries.html#at-method">at</a></b></b>(int <i>index</i>)</li>
<li class="fn"><b><b><a href="qml-qtcharts-abstractbarseries.html#clear-method">clear</a></b></b>()</li>
<li class="fn">BarSet <b><b><a href="qml-qtcharts-abstractbarseries.html#insert-method">insert</a></b></b>(int <i>index</i>, string <i>label</i>, VariantList <i>values</i>)</li>
<li class="fn">bool <b><b><a href="qml-qtcharts-abstractbarseries.html#remove-method">remove</a></b></b>(BarSet <i>barset</i>)</li>
</ul>
<!-- $$$AbstractBarSeries-description -->
<a name="details"></a>
<h2 id="details">Detailed Description</h2>
<p>In bar charts, bars are defined as bar sets that contain one data value for each category. The position of a bar is specified by the category and its height by the data value. Bar series that contain multiple bar sets group together bars that belong to the same category. The way the bars are displayed is determined by the type chosen to create the bar chart: <a href="qml-qtcharts-barseries.html">BarSeries</a>, <a href="qml-qtcharts-stackedbarseries.html">StackedBarSeries</a>, <a href="qml-qtcharts-percentbarseries.html">PercentBarSeries</a>, <a href="qml-qtcharts-horizontalbarseries.html">HorizontalBarSeries</a>, <a href="qml-qtcharts-horizontalstackedbarseries.html">HorizontalStackedBarSeries</a>, or <a href="qml-qtcharts-horizontalpercentbarseries.html">HorizontalPercentBarSeries</a>.</p>
<p>If a <a href="qml-qtcharts-valueaxis.html">ValueAxis</a> type is used instead of a <a href="qml-qtcharts-barcategoryaxis.html">BarCategoryAxis</a> type for the main bar axis, the bars are grouped around the index value of the category.</p>
<p>The following QML code snippet shows how to use the <a href="qml-qtcharts-barseries.html">BarSeries</a> and <a href="qml-qtcharts-barcategoryaxis.html">BarCategoryAxis</a> type to create a simple bar chart:</p>
<pre class="qml">

  <span class="type"><a href="qml-qtcharts-chartview.html">ChartView</a></span> {
      <span class="name">title</span>: <span class="string">&quot;Bar series&quot;</span>
      <span class="name">anchors</span>.fill: <span class="name">parent</span>
      <span class="name">legend</span>.alignment: <span class="name">Qt</span>.<span class="name">AlignBottom</span>
      <span class="name">antialiasing</span>: <span class="number">true</span>

      <span class="type"><a href="qml-qtcharts-barseries.html">BarSeries</a></span> {
          <span class="name">id</span>: <span class="name">mySeries</span>
          <span class="name">axisX</span>: <span class="name">BarCategoryAxis</span> { <span class="name">categories</span>: [<span class="string">&quot;2007&quot;</span>, <span class="string">&quot;2008&quot;</span>, <span class="string">&quot;2009&quot;</span>, <span class="string">&quot;2010&quot;</span>, <span class="string">&quot;2011&quot;</span>, <span class="string">&quot;2012&quot;</span> ] }
          <span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> { <span class="name">label</span>: <span class="string">&quot;Bob&quot;</span>; <span class="name">values</span>: [<span class="number">2</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>] }
          <span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> { <span class="name">label</span>: <span class="string">&quot;Susan&quot;</span>; <span class="name">values</span>: [<span class="number">5</span>, <span class="number">1</span>, <span class="number">2</span>, <span class="number">4</span>, <span class="number">1</span>, <span class="number">7</span>] }
          <span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> { <span class="name">label</span>: <span class="string">&quot;James&quot;</span>; <span class="name">values</span>: [<span class="number">3</span>, <span class="number">5</span>, <span class="number">8</span>, <span class="number">13</span>, <span class="number">5</span>, <span class="number">8</span>] }
      }
  }

</pre>
<div style="float: left; margin-right: 2em"><p class="centerAlign"><img src="images/examples_qmlchart6.png" alt="" /></p></div><br style="clear: both" /><!-- @@@AbstractBarSeries -->
<h2>Property Documentation</h2>
<!-- $$$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-abstractbarseries.html#axisXTop-prop">axisXTop</a> undefined, a <a href="qml-qtcharts-barcategoryaxis.html">BarCategoryAxis</a> is created for the series.</p>
<p><b>See also </b><a href="qml-qtcharts-abstractbarseries.html#axisXTop-prop">axisXTop</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-abstractbarseries.html#axisX-prop">axisX</a> or axisXTop, but not both.</p><p><b>See also </b><a href="qml-qtcharts-abstractbarseries.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-abstractbarseries.html#axisYRight-prop">axisYRight</a> undefined, a <a href="qml-qtcharts-valueaxis.html">ValueAxis</a> is created for the series.</p>
<p><b>See also </b><a href="qml-qtcharts-abstractbarseries.html#axisYRight-prop">axisYRight</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 of the chart view.</p>
<p><b>Note: </b>You can only provide either <a href="qml-qtcharts-abstractbarseries.html#axisY-prop">axisY</a> or axisYRight, but not both.</p><p><b>See also </b><a href="qml-qtcharts-abstractbarseries.html#axisY-prop">axisY</a>.</p>
</div></div><!-- @@@axisYRight -->
<br/>
<!-- $$$barWidth -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="barWidth-prop">
<td class="tblQmlPropNode"><p>
<a name="barWidth-prop"></a><span class="name">barWidth</span> : <span class="type">real</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The unit of width is the unit of the x-axis. The minimum width for bars is zero, and negative values are treated as zero. Setting the width to zero means that the width of the bar on the screen is one pixel regardless of the scale of the x-axis. Bars wider than zero are scaled using the x-axis scale.</p>
<p><b>Note: </b>When used with the <a href="qml-qtcharts-barseries.html">BarSeries</a> type, this value specifies the width of a group of bars instead of that of a single bar.</p></div></div><!-- @@@barWidth -->
<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 bar sets in a bar series.</p>
</div></div><!-- @@@count -->
<br/>
<!-- $$$labelsAngle -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="labelsAngle-prop">
<td class="tblQmlPropNode"><p>
<a name="labelsAngle-prop"></a><span class="name">labelsAngle</span> : <span class="type">real</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The angle of the value labels in degrees.</p>
</div></div><!-- @@@labelsAngle -->
<br/>
<!-- $$$labelsFormat -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="labelsFormat-prop">
<td class="tblQmlPropNode"><p>
<a name="labelsFormat-prop"></a><span class="name">labelsFormat</span> : <span class="type">string</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The format used for showing labels in a bar series.</p>
<p><b>See also </b><a href="qabstractbarseries.html#labelsFormat-prop">QAbstractBarSeries::labelsFormat</a>, <a href="qml-qtcharts-abstractbarseries.html#labelsVisible-prop">labelsVisible</a>, and <a href="qml-qtcharts-abstractbarseries.html#labelsPosition-prop">labelsPosition</a>.</p>
</div></div><!-- @@@labelsFormat -->
<br/>
<!-- $$$labelsPosition -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="labelsPosition-prop">
<td class="tblQmlPropNode"><p>
<a name="labelsPosition-prop"></a><span class="name">labelsPosition</span> : <span class="type">enumeration</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The position of the data value labels:</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>AbstractBarSeries.LabelsCenter</code></td><td class="topAlign">Label is located in the center of the bar.</td></tr>
<tr><td class="topAlign"><code>AbstractBarSeries.LabelsInsideEnd</code></td><td class="topAlign">Label is located inside the bar at the top.</td></tr>
<tr><td class="topAlign"><code>AbstractBarSeries.LabelsInsideBase</code></td><td class="topAlign">Label is located inside the bar at the bottom.</td></tr>
<tr><td class="topAlign"><code>AbstractBarSeries.LabelsOutsideEnd</code></td><td class="topAlign">Label is located outside the bar at the top.</td></tr>
</table></div>
<p><b>See also </b><a href="qml-qtcharts-abstractbarseries.html#labelsVisible-prop">labelsVisible</a> and <a href="qml-qtcharts-abstractbarseries.html#labelsFormat-prop">labelsFormat</a>.</p>
</div></div><!-- @@@labelsPosition -->
<br/>
<!-- $$$labelsVisible -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="labelsVisible-prop">
<td class="tblQmlPropNode"><p>
<a name="labelsVisible-prop"></a><span class="name">labelsVisible</span> : <span class="type">bool</span></p></td></tr>
</table></div>
</div><div class="qmldoc"><p>The visibility of the labels in a bar series.</p>
</div></div><!-- @@@labelsVisible -->
<br/>
<h2>Signal Documentation</h2>
<!-- $$$barsetsAdded -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="barsetsAdded-signal">
<td class="tblQmlFuncNode"><p>
<a name="barsetsAdded-signal"></a><span class="name">barsetsAdded</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when bar sets are added to the series.</p>
<p>The corresponding signal handler is <code>onBarsetsAdded</code>.</p>
</div></div><!-- @@@barsetsAdded -->
<br/>
<!-- $$$barsetsRemoved -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="barsetsRemoved-signal">
<td class="tblQmlFuncNode"><p>
<a name="barsetsRemoved-signal"></a><span class="name">barsetsRemoved</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when bar sets are removed from the series.</p>
<p>The corresponding signal handler is <code>onBarsetsRemoved</code>.</p>
</div></div><!-- @@@barsetsRemoved -->
<br/>
<!-- $$$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">int</span> <i>index</i>, <span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> <i>barset</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the user clicks the bar specified by <i>index</i> in the bar set specified by <i>barset</i>.</p>
<p>The corresponding signal handler is <code>onClicked</code>.</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">int</span> <i>index</i>, <span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> <i>barset</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the user double-clicks the bar specified by <i>index</i> in the bar set specified by <i>barset</i>.</p>
<p>The corresponding signal handler is <code>onDoubleClicked</code>.</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">bool</span> <i>status</i>, <span class="type">int</span> <i>index</i>, <span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> <i>barset</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when a mouse is hovered over the bar specified by <i>index</i> in the bar set specified by <i>barset</i>. When the mouse moves over the bar, <i>status</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/>
<!-- $$$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">int</span> <i>index</i>, <span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> <i>barset</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the user clicks the bar specified by <i>index</i> in the bar set specified by <i>barset</i> and holds down the mouse button.</p>
<p>The corresponding signal handler is <code>onPressed</code>.</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">int</span> <i>index</i>, <span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> <i>barset</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>This signal is emitted when the user releases the mouse press on the bar specified by <i>index</i> in the bar set specified by <i>barset</i>.</p>
<p>The corresponding signal handler is <code>onReleased</code>.</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="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> <span class="name">append</span>(<span class="type">string</span> <i>label</i>, <span class="type">VariantList</span> <i>values</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Adds a new bar set with <i>label</i> and <i>values</i> to the index. <i>values</i> is a list of real values.</p>
<p>For example:</p>
<pre class="cpp">

  myBarSeries<span class="operator">.</span>append(<span class="string">&quot;set 1&quot;</span><span class="operator">,</span> <span class="operator">[</span><span class="number">0</span><span class="operator">,</span> <span class="number">0.2</span><span class="operator">,</span> <span class="number">0.2</span><span class="operator">,</span> <span class="number">0.5</span><span class="operator">,</span> <span class="number">0.4</span><span class="operator">,</span> <span class="number">1.5</span><span class="operator">,</span> <span class="number">0.9</span><span class="operator">]</span>);

</pre>
</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"><a href="qml-qtcharts-barset.html">BarSet</a></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 bar set at <i>index</i>. Returns null if the index is not valid.</p>
</div></div><!-- @@@at -->
<br/>
<!-- $$$clear -->
<div class="qmlitem"><div class="qmlproto">
<div class="table"><table class="qmlname">
<tr valign="top" class="odd" id="clear-method">
<td class="tblQmlFuncNode"><p>
<a name="clear-method"></a><span class="name">clear</span>()</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Removes all bar sets from the series.</p>
</div></div><!-- @@@clear -->
<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="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> <span class="name">insert</span>(<span class="type">int</span> <i>index</i>, <span class="type">string</span> <i>label</i>, <span class="type">VariantList</span> <i>values</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Adds a new bar set with <i>label</i> and <i>values</i> to <i>index</i>. <i>values</i> can be a list of real values or a list of <a href="qml-qtcharts-xypoint.html">XYPoint</a> types.</p>
<p>If the index value is equal to or less than zero, the new bar set is prepended to the bar series. If the index value is equal to or greater than the number of bar sets in the bar series, the new bar set is appended to the bar series.</p>
<p><b>See also </b><a href="qml-qtcharts-abstractbarseries.html#append-method">append()</a>.</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">
<td class="tblQmlFuncNode"><p>
<a name="remove-method"></a><span class="type">bool</span> <span class="name">remove</span>(<span class="type"><a href="qml-qtcharts-barset.html">BarSet</a></span> <i>barset</i>)</p></td></tr>
</table></div>
</div><div class="qmldoc"><p>Removes the bar set specified by <i>barset</i> from the series. Returns <code>true</code> if successful, <code>false</code> otherwise.</p>
</div></div><!-- @@@remove -->
<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>