Sophie

Sophie

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

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" />
<!-- qchart.cpp -->
  <title>QChart Class | 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="qt-charts-module.html">C++ Classes</a></td><td >QChart</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="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#signals">Signals</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">QChart Class</h1>
<!-- $$$QChart-brief -->
<p>The <a href="qchart.html">QChart</a> class manages the graphical representation of the chart's series, legends, and axes. <a href="#details">More...</a></p>
<!-- @@@QChart -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QChart&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qpolarchart.html">QPolarChart</a></p>
</td></tr></table></div><ul>
<li><a href="qchart-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#AnimationOption-enum">AnimationOption</a></b> { NoAnimation, GridAxisAnimations, SeriesAnimations, AllAnimations }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> flags </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#AnimationOption-enum">AnimationOptions</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#ChartTheme-enum">ChartTheme</a></b> { ChartThemeLight, ChartThemeBlueCerulean, ChartThemeDark, ChartThemeBrownSand, ..., ChartThemeQt }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#ChartType-enum">ChartType</a></b> { ChartTypeUndefined, ChartTypeCartesian, ChartTypePolar }</td></tr>
</table></div>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<div class="table"><table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qchart.html#animationDuration-prop">animationDuration</a></b> : int</li>
<li class="fn"><b><a href="qchart.html#animationEasingCurve-prop">animationEasingCurve</a></b> : QEasingCurve</li>
<li class="fn"><b><a href="qchart.html#animationOptions-prop">animationOptions</a></b> : QChart::AnimationOptions</li>
<li class="fn"><b><a href="qchart.html#backgroundRoundness-prop">backgroundRoundness</a></b> : qreal</li>
<li class="fn"><b><a href="qchart.html#backgroundVisible-prop">backgroundVisible</a></b> : bool</li>
<li class="fn"><b><a href="qchart.html#chartType-prop">chartType</a></b> : const QChart::ChartType</li>
<li class="fn"><b><a href="qchart.html#dropShadowEnabled-prop">dropShadowEnabled</a></b> : bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qchart.html#locale-prop">locale</a></b> : QLocale</li>
<li class="fn"><b><a href="qchart.html#localizeNumbers-prop">localizeNumbers</a></b> : bool</li>
<li class="fn"><b><a href="qchart.html#margins-prop">margins</a></b> : QMargins</li>
<li class="fn"><b><a href="qchart.html#plotArea-prop">plotArea</a></b> : const QRectF</li>
<li class="fn"><b><a href="qchart.html#plotAreaBackgroundVisible-prop">plotAreaBackgroundVisible</a></b> : bool</li>
<li class="fn"><b><a href="qchart.html#theme-prop">theme</a></b> : QChart::ChartTheme</li>
<li class="fn"><b><a href="qchart.html#title-prop">title</a></b> : QString</li>
</ul>
</td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#QChart">QChart</a></b>(QGraphicsItem *<i>parent</i> = Q_NULLPTR, Qt::WindowFlags <i>wFlags</i> = Qt::WindowFlags())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#dtor.QChart">~QChart</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#addAxis">addAxis</a></b>(QAbstractAxis *<i>axis</i>, Qt::Alignment <i>alignment</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#addSeries">addSeries</a></b>(QAbstractSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#animationDuration-prop">animationDuration</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QEasingCurve </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#animationEasingCurve-prop">animationEasingCurve</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> AnimationOptions </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#animationOptions-prop">animationOptions</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QAbstractAxis *&gt; </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#axes">axes</a></b>(Qt::Orientations <i>orientation</i> = Qt::Horizontal | Qt::Vertical, QAbstractSeries *<i>series</i> = Q_NULLPTR) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractAxis *</td><td class="memItemRight bottomAlign"><b><a href="qchart.html#axisX">axisX</a></b>(QAbstractSeries *<i>series</i> = Q_NULLPTR) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAbstractAxis *</td><td class="memItemRight bottomAlign"><b><a href="qchart.html#axisY">axisY</a></b>(QAbstractSeries *<i>series</i> = Q_NULLPTR) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#backgroundBrush">backgroundBrush</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPen </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#backgroundPen">backgroundPen</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#backgroundRoundness-prop">backgroundRoundness</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ChartType </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#chartType-prop">chartType</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#createDefaultAxes">createDefaultAxes</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#backgroundVisible-prop">isBackgroundVisible</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#dropShadowEnabled-prop">isDropShadowEnabled</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#plotAreaBackgroundVisible-prop">isPlotAreaBackgroundVisible</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#isZoomed">isZoomed</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QLegend *</td><td class="memItemRight bottomAlign"><b><a href="qchart.html#legend">legend</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QLocale </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#locale-prop">locale</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#localizeNumbers-prop">localizeNumbers</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#mapToPosition">mapToPosition</a></b>(const QPointF &amp;<i>value</i>, QAbstractSeries *<i>series</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPointF </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#mapToValue">mapToValue</a></b>(const QPointF &amp;<i>position</i>, QAbstractSeries *<i>series</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMargins </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#margins-prop">margins</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QRectF </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#plotArea-prop">plotArea</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#plotAreaBackgroundBrush">plotAreaBackgroundBrush</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPen </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#plotAreaBackgroundPen">plotAreaBackgroundPen</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#removeAllSeries">removeAllSeries</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#removeAxis">removeAxis</a></b>(QAbstractAxis *<i>axis</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#removeSeries">removeSeries</a></b>(QAbstractSeries *<i>series</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#scroll">scroll</a></b>(qreal <i>dx</i>, qreal <i>dy</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;QAbstractSeries *&gt; </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#series">series</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#animationDuration-prop">setAnimationDuration</a></b>(int <i>msecs</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#animationEasingCurve-prop">setAnimationEasingCurve</a></b>(const QEasingCurve &amp;<i>curve</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#animationOptions-prop">setAnimationOptions</a></b>(AnimationOptions <i>options</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#setAxisX">setAxisX</a></b>(QAbstractAxis *<i>axis</i>, QAbstractSeries *<i>series</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#setAxisY">setAxisY</a></b>(QAbstractAxis *<i>axis</i>, QAbstractSeries *<i>series</i> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#setBackgroundBrush">setBackgroundBrush</a></b>(const QBrush &amp;<i>brush</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#setBackgroundPen">setBackgroundPen</a></b>(const QPen &amp;<i>pen</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#backgroundRoundness-prop">setBackgroundRoundness</a></b>(qreal <i>diameter</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#backgroundVisible-prop">setBackgroundVisible</a></b>(bool <i>visible</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#dropShadowEnabled-prop">setDropShadowEnabled</a></b>(bool <i>enabled</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#locale-prop">setLocale</a></b>(const QLocale &amp;<i>locale</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#localizeNumbers-prop">setLocalizeNumbers</a></b>(bool <i>localize</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#margins-prop">setMargins</a></b>(const QMargins &amp;<i>margins</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#setPlotAreaBackgroundBrush">setPlotAreaBackgroundBrush</a></b>(const QBrush &amp;<i>brush</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#setPlotAreaBackgroundPen">setPlotAreaBackgroundPen</a></b>(const QPen &amp;<i>pen</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#plotAreaBackgroundVisible-prop">setPlotAreaBackgroundVisible</a></b>(bool <i>visible</i> = true)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#theme-prop">setTheme</a></b>(QChart::ChartTheme <i>theme</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#title-prop">setTitle</a></b>(const QString &amp;<i>title</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#setTitleBrush">setTitleBrush</a></b>(const QBrush &amp;<i>brush</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#setTitleFont">setTitleFont</a></b>(const QFont &amp;<i>font</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QChart::ChartTheme </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#theme-prop">theme</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#title-prop">title</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QBrush </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#titleBrush">titleBrush</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QFont </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#titleFont">titleFont</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#zoom">zoom</a></b>(qreal <i>factor</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#zoomIn">zoomIn</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#zoomIn-1">zoomIn</a></b>(const QRectF &amp;<i>rect</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#zoomOut">zoomOut</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#zoomReset">zoomReset</a></b>()</td></tr>
</table></div>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qchart.html#plotArea-prop">plotAreaChanged</a></b>(const QRectF &amp;<i>plotArea</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QChart-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qchart.html">QChart</a> class manages the graphical representation of the chart's series, legends, and axes.</p>
<p><a href="qchart.html">QChart</a> is a QGraphicsWidget that you can show in a QGraphicsScene. It manages the graphical representation of different types of series and other chart related objects like legend and axes. To simply show a chart in a layout, the convenience class <a href="qchartview.html">QChartView</a> can be used instead of <a href="qchart.html">QChart</a>. In addition, line, spline, area, and scatter series can be presented as polar charts by using the <a href="qpolarchart.html">QPolarChart</a> class.</p>
</div>
<p><b>See also </b><a href="qchartview.html">QChartView</a> and <a href="qpolarchart.html">QPolarChart</a>.</p>
<!-- @@@QChart -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$AnimationOption$$$NoAnimation$$$GridAxisAnimations$$$SeriesAnimations$$$AllAnimations -->
<h3 class="flags" id="AnimationOption-enum"><a name="AnimationOption-enum"></a>enum QChart::<span class="name">AnimationOption</span><br/>flags QChart::<span class="name">AnimationOptions</span></h3>
<p>This enum describes 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="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QChart::NoAnimation</code></td><td class="topAlign tblval"><code>0x0</code></td><td class="topAlign">Animation is disabled in the chart. This is the default value.</td></tr>
<tr><td class="topAlign"><code>QChart::GridAxisAnimations</code></td><td class="topAlign tblval"><code>0x1</code></td><td class="topAlign">Grid axis animation is enabled in the chart.</td></tr>
<tr><td class="topAlign"><code>QChart::SeriesAnimations</code></td><td class="topAlign tblval"><code>0x2</code></td><td class="topAlign">Series animation is enabled in the chart.</td></tr>
<tr><td class="topAlign"><code>QChart::AllAnimations</code></td><td class="topAlign tblval"><code>0x3</code></td><td class="topAlign">All animation types are enabled in the chart.</td></tr>
</table></div>
<p>The AnimationOptions type is a typedef for <a href="">QFlags</a>&lt;AnimationOption&gt;. It stores an OR combination of AnimationOption values.</p>
<!-- @@@AnimationOption -->
<!-- $$$ChartTheme$$$ChartThemeLight$$$ChartThemeBlueCerulean$$$ChartThemeDark$$$ChartThemeBrownSand$$$ChartThemeBlueNcs$$$ChartThemeHighContrast$$$ChartThemeBlueIcy$$$ChartThemeQt -->
<h3 class="fn" id="ChartTheme-enum"><a name="ChartTheme-enum"></a>enum QChart::<span class="name">ChartTheme</span></h3>
<p>This enum describes 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-chartthemes-example.html">Chart themes example</a> illustrates how to use themes.</p>
<p><b>Note: </b>Changing the theme will overwrite all customizations previously applied to the series.</p><div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QChart::ChartThemeLight</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The light theme, which is the default theme.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartThemeBlueCerulean</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">The cerulean blue theme.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartThemeDark</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">The dark theme.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartThemeBrownSand</code></td><td class="topAlign tblval"><code>3</code></td><td class="topAlign">The sand brown theme.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartThemeBlueNcs</code></td><td class="topAlign tblval"><code>4</code></td><td class="topAlign">The natural color system (NCS) blue theme.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartThemeHighContrast</code></td><td class="topAlign tblval"><code>5</code></td><td class="topAlign">The high contrast theme.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartThemeBlueIcy</code></td><td class="topAlign tblval"><code>6</code></td><td class="topAlign">The icy blue theme.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartThemeQt</code></td><td class="topAlign tblval"><code>7</code></td><td class="topAlign">The Qt theme.</td></tr>
</table></div>
<!-- @@@ChartTheme -->
<!-- $$$ChartType$$$ChartTypeUndefined$$$ChartTypeCartesian$$$ChartTypePolar -->
<h3 class="fn" id="ChartType-enum"><a name="ChartType-enum"></a>enum QChart::<span class="name">ChartType</span></h3>
<p>This enum describes the chart type.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QChart::ChartTypeUndefined</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The chart type is not defined.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartTypeCartesian</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">A cartesian chart.</td></tr>
<tr><td class="topAlign"><code>QChart::ChartTypePolar</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">A polar chart.</td></tr>
</table></div>
<!-- @@@ChartType -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$animationDuration-prop$$$animationDuration$$$setAnimationDurationint -->
<h3 class="fn" id="animationDuration-prop"><a name="animationDuration-prop"></a><span class="name">animationDuration</span> : <span class="type">int</span></h3>
<p>This property holds the duration of the animation for the chart.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> int </td><td class="memItemRight bottomAlign"><span class="name"><b>animationDuration</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAnimationDuration</b></span>(int <i>msecs</i>)</td></tr>
</table></div>
<!-- @@@animationDuration -->
<!-- $$$animationEasingCurve-prop$$$animationEasingCurve$$$setAnimationEasingCurveconstQEasingCurve& -->
<h3 class="fn" id="animationEasingCurve-prop"><a name="animationEasingCurve-prop"></a><span class="name">animationEasingCurve</span> : <span class="type">QEasingCurve</span></h3>
<p>This property holds the easing curve of the animation for the chart.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QEasingCurve </td><td class="memItemRight bottomAlign"><span class="name"><b>animationEasingCurve</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAnimationEasingCurve</b></span>(const QEasingCurve &amp;<i>curve</i>)</td></tr>
</table></div>
<!-- @@@animationEasingCurve -->
<!-- $$$animationOptions-prop$$$animationOptions$$$setAnimationOptionsAnimationOptions -->
<h3 class="fn" id="animationOptions-prop"><a name="animationOptions-prop"></a><span class="name">animationOptions</span> : <span class="type"><a href="qchart.html#AnimationOption-enum">QChart::AnimationOptions</a></span></h3>
<p>This property holds the animation options for the chart.</p>
<p>Animations are enabled or disabled based on this setting.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> AnimationOptions </td><td class="memItemRight bottomAlign"><span class="name"><b>animationOptions</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAnimationOptions</b></span>(AnimationOptions <i>options</i>)</td></tr>
</table></div>
<!-- @@@animationOptions -->
<!-- $$$backgroundRoundness-prop$$$backgroundRoundness$$$setBackgroundRoundnessqreal -->
<h3 class="fn" id="backgroundRoundness-prop"><a name="backgroundRoundness-prop"></a><span class="name">backgroundRoundness</span> : <span class="type">qreal</span></h3>
<p>This property holds the diameter of the rounding circle at the corners of the chart background.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> qreal </td><td class="memItemRight bottomAlign"><span class="name"><b>backgroundRoundness</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBackgroundRoundness</b></span>(qreal <i>diameter</i>)</td></tr>
</table></div>
<!-- @@@backgroundRoundness -->
<!-- $$$backgroundVisible-prop$$$isBackgroundVisible$$$setBackgroundVisiblebool -->
<h3 class="fn" id="backgroundVisible-prop"><a name="backgroundVisible-prop"></a><span class="name">backgroundVisible</span> : <span class="type">bool</span></h3>
<p>This property holds whether the chart background is visible.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isBackgroundVisible</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setBackgroundVisible</b></span>(bool <i>visible</i> = true)</td></tr>
</table></div>
<p><b>See also </b><a href="qchart.html#setBackgroundBrush">setBackgroundBrush</a>(), <a href="qchart.html#setBackgroundPen">setBackgroundPen</a>(), and <a href="qchart.html#plotAreaBackgroundVisible-prop">plotAreaBackgroundVisible</a>.</p>
<!-- @@@backgroundVisible -->
<!-- $$$chartType-prop$$$chartType -->
<h3 class="fn" id="chartType-prop"><a name="chartType-prop"></a><span class="name">chartType</span> : const <span class="type"><a href="qchart.html#ChartType-enum">QChart::ChartType</a></span></h3>
<p>This property holds whether the chart is a cartesian chart or a polar chart.</p>
<p>This property is set internally and it is read only.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> ChartType </td><td class="memItemRight bottomAlign"><span class="name"><b>chartType</b></span>() const</td></tr>
</table></div>
<p><b>See also </b><a href="qpolarchart.html">QPolarChart</a>.</p>
<!-- @@@chartType -->
<!-- $$$dropShadowEnabled-prop$$$isDropShadowEnabled$$$setDropShadowEnabledbool -->
<h3 class="fn" id="dropShadowEnabled-prop"><a name="dropShadowEnabled-prop"></a><span class="name">dropShadowEnabled</span> : <span class="type">bool</span></h3>
<p>This property holds 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>
<p><b>Note: </b>The drop shadow effect depends on the theme, and therefore the setting may change if the theme is changed.</p><p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isDropShadowEnabled</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDropShadowEnabled</b></span>(bool <i>enabled</i> = true)</td></tr>
</table></div>
<!-- @@@dropShadowEnabled -->
<!-- $$$locale-prop$$$locale$$$setLocaleconstQLocale& -->
<h3 class="fn" id="locale-prop"><a name="locale-prop"></a><span class="name">locale</span> : <span class="type">QLocale</span></h3>
<p>This property holds the locale used to format various chart labels.</p>
<p>Labels are localized only when <a href="qchart.html#localizeNumbers-prop">localizeNumbers</a> is <code>true</code>, except for <a href="qdatetimeaxis.html">QDateTimeAxis</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><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QLocale </td><td class="memItemRight bottomAlign"><span class="name"><b>locale</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLocale</b></span>(const QLocale &amp;<i>locale</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qchart.html#localizeNumbers-prop">localizeNumbers</a>.</p>
<!-- @@@locale -->
<!-- $$$localizeNumbers-prop$$$localizeNumbers$$$setLocalizeNumbersbool -->
<h3 class="fn" id="localizeNumbers-prop"><a name="localizeNumbers-prop"></a><span class="name">localizeNumbers</span> : <span class="type">bool</span></h3>
<p>This property holds 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="qchart.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="qdatetimeaxis.html">QDateTimeAxis</a> labels, which always use the QLocale set with the locale property.</p><p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>localizeNumbers</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setLocalizeNumbers</b></span>(bool <i>localize</i>)</td></tr>
</table></div>
<p><b>See also </b><a href="qchart.html#locale-prop">locale</a>.</p>
<!-- @@@localizeNumbers -->
<!-- $$$margins-prop$$$margins$$$setMarginsconstQMargins& -->
<h3 class="fn" id="margins-prop"><a name="margins-prop"></a><span class="name">margins</span> : <span class="type">QMargins</span></h3>
<p>This property holds the minimum margins allowed between the edge of the chart rectangle and the plot area.</p>
<p>The margins are used for drawing the title, axes, and legend.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QMargins </td><td class="memItemRight bottomAlign"><span class="name"><b>margins</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMargins</b></span>(const QMargins &amp;<i>margins</i>)</td></tr>
</table></div>
<!-- @@@margins -->
<!-- $$$plotArea-prop$$$plotArea$$$plotAreaChangedconstQRectF& -->
<h3 class="fn" id="plotArea-prop"><a name="plotArea-prop"></a><span class="name">plotArea</span> : const <span class="type">QRectF</span></h3>
<p>This property holds the rectangle within which the chart is drawn.</p>
<p>The plot area does not include the area defined by margins.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QRectF </td><td class="memItemRight bottomAlign"><span class="name"><b>plotArea</b></span>() const</td></tr>
</table></div>
<p><b>Notifier signal:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>plotAreaChanged</b></span>(const QRectF &amp;<i>plotArea</i>)</td></tr>
</table></div>
<!-- @@@plotArea -->
<!-- $$$plotAreaBackgroundVisible-prop$$$isPlotAreaBackgroundVisible$$$setPlotAreaBackgroundVisiblebool -->
<h3 class="fn" id="plotAreaBackgroundVisible-prop"><a name="plotAreaBackgroundVisible-prop"></a><span class="name">plotAreaBackgroundVisible</span> : <span class="type">bool</span></h3>
<p>This property holds whether the chart plot area background is visible.</p>
<p><b>Note: </b>By default, the plot area background is invisible and the plot area uses the general chart background.</p><p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isPlotAreaBackgroundVisible</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setPlotAreaBackgroundVisible</b></span>(bool <i>visible</i> = true)</td></tr>
</table></div>
<p><b>See also </b><a href="qchart.html#setPlotAreaBackgroundBrush">setPlotAreaBackgroundBrush</a>(), <a href="qchart.html#setPlotAreaBackgroundPen">setPlotAreaBackgroundPen</a>(), and <a href="qchart.html#backgroundVisible-prop">backgroundVisible</a>.</p>
<!-- @@@plotAreaBackgroundVisible -->
<!-- $$$theme-prop$$$theme$$$setThemeQChart::ChartTheme -->
<h3 class="fn" id="theme-prop"><a name="theme-prop"></a><span class="name">theme</span> : <span class="type"><a href="qchart.html#ChartTheme-enum">QChart::ChartTheme</a></span></h3>
<p>This property holds the theme used for the chart.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QChart::ChartTheme </td><td class="memItemRight bottomAlign"><span class="name"><b>theme</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTheme</b></span>(QChart::ChartTheme <i>theme</i>)</td></tr>
</table></div>
<!-- @@@theme -->
<!-- $$$title-prop$$$title$$$setTitleconstQString& -->
<h3 class="fn" id="title-prop"><a name="title-prop"></a><span class="name">title</span> : <span class="type">QString</span></h3>
<p>This property holds the title of the chart.</p>
<p>The title is shown as a headline on top of the chart. Chart titles support HTML formatting.</p>
<p><b>Access functions:</b></p>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>title</b></span>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setTitle</b></span>(const QString &amp;<i>title</i>)</td></tr>
</table></div>
<!-- @@@title -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QChart[overload1]$$$QChartQGraphicsItem*Qt::WindowFlags -->
<h3 class="fn" id="QChart"><a name="QChart"></a>QChart::<span class="name">QChart</span>(<span class="type">QGraphicsItem</span> *<i>parent</i> = Q_NULLPTR, <span class="type">Qt::WindowFlags</span> <i>wFlags</i> = Qt::WindowFlags())</h3>
<p>Constructs a chart object that is a child of <i>parent</i>. The properties specified by <i>wFlags</i> are passed to the QGraphicsWidget constructor.</p>
<!-- @@@QChart -->
<!-- $$$~QChart[overload1]$$$~QChart -->
<h3 class="fn" id="dtor.QChart"><a name="dtor.QChart"></a>QChart::<span class="name">~QChart</span>()</h3>
<p>Deletes the chart object and its children, such as the series and axis objects added to it.</p>
<!-- @@@~QChart -->
<!-- $$$addAxis[overload1]$$$addAxisQAbstractAxis*Qt::Alignment -->
<h3 class="fn" id="addAxis"><a name="addAxis"></a><span class="type">void</span> QChart::<span class="name">addAxis</span>(<span class="type"><a href="qabstractaxis.html">QAbstractAxis</a></span> *<i>axis</i>, <span class="type">Qt::Alignment</span> <i>alignment</i>)</h3>
<p>Adds the axis <i>axis</i> to the chart aligned as specified by <i>alignment</i>. The chart takes the ownership of the axis.</p>
<p><b>See also </b><a href="qchart.html#removeAxis">removeAxis</a>(), <a href="qchart.html#createDefaultAxes">createDefaultAxes</a>(), and <a href="qabstractseries.html#attachAxis">QAbstractSeries::attachAxis</a>().</p>
<!-- @@@addAxis -->
<!-- $$$addSeries[overload1]$$$addSeriesQAbstractSeries* -->
<h3 class="fn" id="addSeries"><a name="addSeries"></a><span class="type">void</span> QChart::<span class="name">addSeries</span>(<span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i>)</h3>
<p>Adds the series <i>series</i> to the chart and takes ownership of it.</p>
<p><b>Note: </b>A newly added series is not attached to any axes by default, not even those that might have been created for the chart using <a href="qchart.html#createDefaultAxes">createDefaultAxes</a>() before the series was added to the chart. If no axes are attached to the newly added series before the chart is shown, the series will get drawn as if it had axes with ranges that exactly fit the series to the plot area of the chart. This can be confusing if the same chart also displays other series that have properly attached axes, so always make sure you either call <a href="qchart.html#createDefaultAxes">createDefaultAxes</a>() after a series has been added or explicitly attach axes for the series.</p><p><b>See also </b><a href="qchart.html#removeSeries">removeSeries</a>(), <a href="qchart.html#removeAllSeries">removeAllSeries</a>(), <a href="qchart.html#createDefaultAxes">createDefaultAxes</a>(), and <a href="qabstractseries.html#attachAxis">QAbstractSeries::attachAxis</a>().</p>
<!-- @@@addSeries -->
<!-- $$$axes[overload1]$$$axesQt::OrientationsQAbstractSeries* -->
<h3 class="fn" id="axes"><a name="axes"></a><span class="type">QList</span>&lt;<span class="type"><a href="qabstractaxis.html">QAbstractAxis</a></span> *&gt; QChart::<span class="name">axes</span>(<span class="type">Qt::Orientations</span> <i>orientation</i> = Qt::Horizontal | Qt::Vertical, <span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i> = Q_NULLPTR) const</h3>
<p>Returns the axes attached to the series <i>series</i> with the orientation specified by <i>orientation</i>. If no series is specified, all axes added to the chart with the specified orientation are returned.</p>
<p><b>See also </b><a href="qchart.html#addAxis">addAxis</a>() and <a href="qchart.html#createDefaultAxes">createDefaultAxes</a>().</p>
<!-- @@@axes -->
<!-- $$$axisX[overload1]$$$axisXQAbstractSeries* -->
<h3 class="fn" id="axisX"><a name="axisX"></a><span class="type"><a href="qabstractaxis.html">QAbstractAxis</a></span> *QChart::<span class="name">axisX</span>(<span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i> = Q_NULLPTR) const</h3>
<p>Returns a pointer to the horizontal axis attached to the specified <i>series</i>. If no series is specified, the first horizontal axis added to the chart is returned.</p>
<p><b>See also </b><a href="qchart.html#setAxisX">setAxisX</a>(), <a href="qchart.html#addAxis">addAxis</a>(), and <a href="qabstractseries.html#attachAxis">QAbstractSeries::attachAxis</a>().</p>
<!-- @@@axisX -->
<!-- $$$axisY[overload1]$$$axisYQAbstractSeries* -->
<h3 class="fn" id="axisY"><a name="axisY"></a><span class="type"><a href="qabstractaxis.html">QAbstractAxis</a></span> *QChart::<span class="name">axisY</span>(<span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i> = Q_NULLPTR) const</h3>
<p>Returns a pointer to the vertical axis attached to the specified <i>series</i>. If no series is specified, the first vertical axis added to the chart is returned.</p>
<p><b>See also </b><a href="qchart.html#setAxisY">setAxisY</a>(), <a href="qchart.html#addAxis">addAxis</a>(), and <a href="qabstractseries.html#attachAxis">QAbstractSeries::attachAxis</a>().</p>
<!-- @@@axisY -->
<!-- $$$backgroundBrush[overload1]$$$backgroundBrush -->
<h3 class="fn" id="backgroundBrush"><a name="backgroundBrush"></a><span class="type">QBrush</span> QChart::<span class="name">backgroundBrush</span>() const</h3>
<p>Gets the brush that is used for painting the background of the chart area.</p>
<p><b>See also </b><a href="qchart.html#setBackgroundBrush">setBackgroundBrush</a>().</p>
<!-- @@@backgroundBrush -->
<!-- $$$backgroundPen[overload1]$$$backgroundPen -->
<h3 class="fn" id="backgroundPen"><a name="backgroundPen"></a><span class="type">QPen</span> QChart::<span class="name">backgroundPen</span>() const</h3>
<p>Gets the pen that is used for painting the background of the chart area.</p>
<p><b>See also </b><a href="qchart.html#setBackgroundPen">setBackgroundPen</a>().</p>
<!-- @@@backgroundPen -->
<!-- $$$createDefaultAxes[overload1]$$$createDefaultAxes -->
<h3 class="fn" id="createDefaultAxes"><a name="createDefaultAxes"></a><span class="type">void</span> QChart::<span class="name">createDefaultAxes</span>()</h3>
<p>Creates axes for the chart based on the series that have already been added to the chart. Any axes previously added to the chart will be deleted.</p>
<p><b>Note: </b>This function has to be called after all series have been added to the chart. The axes created by this function will NOT get automatically attached to any series added to the chart after this function has been called. A series with no axes attached will by default scale to utilize the entire plot area of the chart, which can be confusing if there are other series with properly attached axes also present.</p><div class="table"><table class="generic">
 <thead><tr class="qt-style"><th >Series type</th><th >X-axis</th><th >Y-axis</th></tr></thead>
<tr valign="top" class="odd"><td ><a href="qxyseries.html">QXYSeries</a></td><td ><a href="qvalueaxis.html">QValueAxis</a></td><td ><a href="qvalueaxis.html">QValueAxis</a></td></tr>
<tr valign="top" class="even"><td ><a href="qbarseries.html">QBarSeries</a></td><td ><a href="qbarcategoryaxis.html">QBarCategoryAxis</a></td><td ><a href="qvalueaxis.html">QValueAxis</a></td></tr>
<tr valign="top" class="odd"><td ><a href="qpieseries.html">QPieSeries</a></td><td >None</td><td >None</td></tr>
</table></div>
<p>If there are several <a href="qxyseries.html">QXYSeries</a> derived series added to the chart and no series of other types have been added, then only one pair of axes is created. If there are several series of different types added to the chart, then each series gets its own axes pair.</p>
<p>The axes specific to the series can be later obtained from the chart by providing the series as the parameter for the <a href="qchart.html#axes">axes</a>() function call. <a href="qpieseries.html">QPieSeries</a> does not create any axes.</p>
<p><b>See also </b><a href="qchart.html#axisX">axisX</a>(), <a href="qchart.html#axisY">axisY</a>(), <a href="qchart.html#axes">axes</a>(), <a href="qchart.html#setAxisX">setAxisX</a>(), <a href="qchart.html#setAxisY">setAxisY</a>(), and <a href="qabstractseries.html#attachAxis">QAbstractSeries::attachAxis</a>().</p>
<!-- @@@createDefaultAxes -->
<!-- $$$isZoomed[overload1]$$$isZoomed -->
<h3 class="fn" id="isZoomed"><a name="isZoomed"></a><span class="type">bool</span> QChart::<span class="name">isZoomed</span>()</h3>
<p>Returns <code>true</code> if any series has a zoomed domain.</p>
<!-- @@@isZoomed -->
<!-- $$$legend[overload1]$$$legend -->
<h3 class="fn" id="legend"><a name="legend"></a><span class="type"><a href="qlegend.html">QLegend</a></span> *QChart::<span class="name">legend</span>() const</h3>
<p>Returns the legend object of the chart. Ownership stays with the chart.</p>
<!-- @@@legend -->
<!-- $$$mapToPosition[overload1]$$$mapToPositionconstQPointF&QAbstractSeries* -->
<h3 class="fn" id="mapToPosition"><a name="mapToPosition"></a><span class="type">QPointF</span> QChart::<span class="name">mapToPosition</span>(const <span class="type">QPointF</span> &amp;<i>value</i>, <span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i> = Q_NULLPTR)</h3>
<p>Returns the position on the chart that corresponds to the value <i>value</i> in the series specified by <i>series</i>.</p>
<!-- @@@mapToPosition -->
<!-- $$$mapToValue[overload1]$$$mapToValueconstQPointF&QAbstractSeries* -->
<h3 class="fn" id="mapToValue"><a name="mapToValue"></a><span class="type">QPointF</span> QChart::<span class="name">mapToValue</span>(const <span class="type">QPointF</span> &amp;<i>position</i>, <span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i> = Q_NULLPTR)</h3>
<p>Returns the value in the series specified by <i>series</i> at the position specified by <i>position</i> in a chart.</p>
<!-- @@@mapToValue -->
<!-- $$$plotAreaBackgroundBrush[overload1]$$$plotAreaBackgroundBrush -->
<h3 class="fn" id="plotAreaBackgroundBrush"><a name="plotAreaBackgroundBrush"></a><span class="type">QBrush</span> QChart::<span class="name">plotAreaBackgroundBrush</span>() const</h3>
<p>Returns the brush used to fill the background of the plot area of the chart.</p>
<p><b>See also </b><a href="qchart.html#plotArea-prop">plotArea</a>(), <a href="qchart.html#plotAreaBackgroundVisible-prop">plotAreaBackgroundVisible</a>, <a href="qchart.html#plotAreaBackgroundPen">plotAreaBackgroundPen</a>(), and <a href="qchart.html#setPlotAreaBackgroundBrush">setPlotAreaBackgroundBrush</a>().</p>
<!-- @@@plotAreaBackgroundBrush -->
<!-- $$$plotAreaBackgroundPen[overload1]$$$plotAreaBackgroundPen -->
<h3 class="fn" id="plotAreaBackgroundPen"><a name="plotAreaBackgroundPen"></a><span class="type">QPen</span> QChart::<span class="name">plotAreaBackgroundPen</span>() const</h3>
<p>Returns the pen used to draw the background of the plot area of the chart.</p>
<p><b>See also </b><a href="qchart.html#plotArea-prop">plotArea</a>(), <a href="qchart.html#plotAreaBackgroundVisible-prop">plotAreaBackgroundVisible</a>, <a href="qchart.html#plotAreaBackgroundBrush">plotAreaBackgroundBrush</a>(), and <a href="qchart.html#setPlotAreaBackgroundPen">setPlotAreaBackgroundPen</a>().</p>
<!-- @@@plotAreaBackgroundPen -->
<!-- $$$removeAllSeries[overload1]$$$removeAllSeries -->
<h3 class="fn" id="removeAllSeries"><a name="removeAllSeries"></a><span class="type">void</span> QChart::<span class="name">removeAllSeries</span>()</h3>
<p>Removes and deletes all series objects that have been added to the chart.</p>
<p><b>See also </b><a href="qchart.html#addSeries">addSeries</a>() and <a href="qchart.html#removeSeries">removeSeries</a>().</p>
<!-- @@@removeAllSeries -->
<!-- $$$removeAxis[overload1]$$$removeAxisQAbstractAxis* -->
<h3 class="fn" id="removeAxis"><a name="removeAxis"></a><span class="type">void</span> QChart::<span class="name">removeAxis</span>(<span class="type"><a href="qabstractaxis.html">QAbstractAxis</a></span> *<i>axis</i>)</h3>
<p>Removes the axis <i>axis</i> from the chart. The chart releases the ownership of the specified <i>axis</i> object.</p>
<p><b>See also </b><a href="qchart.html#addAxis">addAxis</a>(), <a href="qchart.html#createDefaultAxes">createDefaultAxes</a>(), and <a href="qabstractseries.html#detachAxis">QAbstractSeries::detachAxis</a>().</p>
<!-- @@@removeAxis -->
<!-- $$$removeSeries[overload1]$$$removeSeriesQAbstractSeries* -->
<h3 class="fn" id="removeSeries"><a name="removeSeries"></a><span class="type">void</span> QChart::<span class="name">removeSeries</span>(<span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i>)</h3>
<p>Removes the series <i>series</i> from the chart. The chart releases the ownership of the specified <i>series</i> object.</p>
<p><b>See also </b><a href="qchart.html#addSeries">addSeries</a>() and <a href="qchart.html#removeAllSeries">removeAllSeries</a>().</p>
<!-- @@@removeSeries -->
<!-- $$$scroll[overload1]$$$scrollqrealqreal -->
<h3 class="fn" id="scroll"><a name="scroll"></a><span class="type">void</span> QChart::<span class="name">scroll</span>(<span class="type">qreal</span> <i>dx</i>, <span class="type">qreal</span> <i>dy</i>)</h3>
<p>Scrolls the visible area of the chart by the distance specified by <i>dx</i> and <i>dy</i>.</p>
<p>For polar charts, <i>dx</i> indicates the angle along the angular axis instead of distance.</p>
<!-- @@@scroll -->
<!-- $$$series[overload1]$$$series -->
<h3 class="fn" id="series"><a name="series"></a><span class="type">QList</span>&lt;<span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *&gt; QChart::<span class="name">series</span>() const</h3>
<p>Returns all series that are added to the chart.</p>
<p><b>See also </b><a href="qchart.html#addSeries">addSeries</a>(), <a href="qchart.html#removeSeries">removeSeries</a>(), and <a href="qchart.html#removeAllSeries">removeAllSeries</a>().</p>
<!-- @@@series -->
<!-- $$$setAxisX[overload1]$$$setAxisXQAbstractAxis*QAbstractSeries* -->
<h3 class="fn" id="setAxisX"><a name="setAxisX"></a><span class="type">void</span> QChart::<span class="name">setAxisX</span>(<span class="type"><a href="qabstractaxis.html">QAbstractAxis</a></span> *<i>axis</i>, <span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i> = Q_NULLPTR)</h3>
<p>Adds the axis <i>axis</i> to the chart and attaches it to the series <i>series</i> as a bottom-aligned horizontal axis. The chart takes ownership of both the axis and the series. Any horizontal axes previously attached to the series are deleted.</p>
<p><b>See also </b><a href="qchart.html#axisX">axisX</a>(), <a href="qchart.html#axisY">axisY</a>(), <a href="qchart.html#setAxisY">setAxisY</a>(), <a href="qchart.html#createDefaultAxes">createDefaultAxes</a>(), and <a href="qabstractseries.html#attachAxis">QAbstractSeries::attachAxis</a>().</p>
<!-- @@@setAxisX -->
<!-- $$$setAxisY[overload1]$$$setAxisYQAbstractAxis*QAbstractSeries* -->
<h3 class="fn" id="setAxisY"><a name="setAxisY"></a><span class="type">void</span> QChart::<span class="name">setAxisY</span>(<span class="type"><a href="qabstractaxis.html">QAbstractAxis</a></span> *<i>axis</i>, <span class="type"><a href="qabstractseries.html">QAbstractSeries</a></span> *<i>series</i> = Q_NULLPTR)</h3>
<p>Adds the axis <i>axis</i> to the chart and attaches it to the series <i>series</i> as a left-aligned vertical axis. The chart takes ownership of both the axis and the series. Any vertical axes previously attached to the series are deleted.</p>
<p><b>See also </b><a href="qchart.html#axisX">axisX</a>(), <a href="qchart.html#axisY">axisY</a>(), <a href="qchart.html#setAxisX">setAxisX</a>(), <a href="qchart.html#createDefaultAxes">createDefaultAxes</a>(), and <a href="qabstractseries.html#attachAxis">QAbstractSeries::attachAxis</a>().</p>
<!-- @@@setAxisY -->
<!-- $$$setBackgroundBrush[overload1]$$$setBackgroundBrushconstQBrush& -->
<h3 class="fn" id="setBackgroundBrush"><a name="setBackgroundBrush"></a><span class="type">void</span> QChart::<span class="name">setBackgroundBrush</span>(const <span class="type">QBrush</span> &amp;<i>brush</i>)</h3>
<p>Sets the brush that is used for painting the background of the chart area to <i>brush</i>.</p>
<p><b>See also </b><a href="qchart.html#backgroundBrush">backgroundBrush</a>().</p>
<!-- @@@setBackgroundBrush -->
<!-- $$$setBackgroundPen[overload1]$$$setBackgroundPenconstQPen& -->
<h3 class="fn" id="setBackgroundPen"><a name="setBackgroundPen"></a><span class="type">void</span> QChart::<span class="name">setBackgroundPen</span>(const <span class="type">QPen</span> &amp;<i>pen</i>)</h3>
<p>Sets the pen that is used for painting the background of the chart area to <i>pen</i>.</p>
<p><b>See also </b><a href="qchart.html#backgroundPen">backgroundPen</a>().</p>
<!-- @@@setBackgroundPen -->
<!-- $$$setPlotAreaBackgroundBrush[overload1]$$$setPlotAreaBackgroundBrushconstQBrush& -->
<h3 class="fn" id="setPlotAreaBackgroundBrush"><a name="setPlotAreaBackgroundBrush"></a><span class="type">void</span> QChart::<span class="name">setPlotAreaBackgroundBrush</span>(const <span class="type">QBrush</span> &amp;<i>brush</i>)</h3>
<p>Sets the brush used to fill the background of the plot area of the chart to <i>brush</i>.</p>
<p><b>See also </b><a href="qchart.html#plotArea-prop">plotArea</a>(), <a href="qchart.html#plotAreaBackgroundVisible-prop">plotAreaBackgroundVisible</a>, <a href="qchart.html#setPlotAreaBackgroundPen">setPlotAreaBackgroundPen</a>(), and <a href="qchart.html#plotAreaBackgroundBrush">plotAreaBackgroundBrush</a>().</p>
<!-- @@@setPlotAreaBackgroundBrush -->
<!-- $$$setPlotAreaBackgroundPen[overload1]$$$setPlotAreaBackgroundPenconstQPen& -->
<h3 class="fn" id="setPlotAreaBackgroundPen"><a name="setPlotAreaBackgroundPen"></a><span class="type">void</span> QChart::<span class="name">setPlotAreaBackgroundPen</span>(const <span class="type">QPen</span> &amp;<i>pen</i>)</h3>
<p>Sets the pen used to draw the background of the plot area of the chart to <i>pen</i>.</p>
<p><b>See also </b><a href="qchart.html#plotArea-prop">plotArea</a>(), <a href="qchart.html#plotAreaBackgroundVisible-prop">plotAreaBackgroundVisible</a>, <a href="qchart.html#setPlotAreaBackgroundBrush">setPlotAreaBackgroundBrush</a>(), and <a href="qchart.html#plotAreaBackgroundPen">plotAreaBackgroundPen</a>().</p>
<!-- @@@setPlotAreaBackgroundPen -->
<!-- $$$setTitleBrush[overload1]$$$setTitleBrushconstQBrush& -->
<h3 class="fn" id="setTitleBrush"><a name="setTitleBrush"></a><span class="type">void</span> QChart::<span class="name">setTitleBrush</span>(const <span class="type">QBrush</span> &amp;<i>brush</i>)</h3>
<p>Sets the brush used for drawing the title text to <i>brush</i>.</p>
<p><b>See also </b><a href="qchart.html#titleBrush">titleBrush</a>().</p>
<!-- @@@setTitleBrush -->
<!-- $$$setTitleFont[overload1]$$$setTitleFontconstQFont& -->
<h3 class="fn" id="setTitleFont"><a name="setTitleFont"></a><span class="type">void</span> QChart::<span class="name">setTitleFont</span>(const <span class="type">QFont</span> &amp;<i>font</i>)</h3>
<p>Sets the font that is used for drawing the chart title to <i>font</i>.</p>
<p><b>See also </b><a href="qchart.html#titleFont">titleFont</a>().</p>
<!-- @@@setTitleFont -->
<!-- $$$titleBrush[overload1]$$$titleBrush -->
<h3 class="fn" id="titleBrush"><a name="titleBrush"></a><span class="type">QBrush</span> QChart::<span class="name">titleBrush</span>() const</h3>
<p>Returns the brush used for drawing the title text.</p>
<p><b>See also </b><a href="qchart.html#setTitleBrush">setTitleBrush</a>().</p>
<!-- @@@titleBrush -->
<!-- $$$titleFont[overload1]$$$titleFont -->
<h3 class="fn" id="titleFont"><a name="titleFont"></a><span class="type">QFont</span> QChart::<span class="name">titleFont</span>() const</h3>
<p>Gets the font that is used for drawing the chart title.</p>
<p><b>See also </b><a href="qchart.html#setTitleFont">setTitleFont</a>().</p>
<!-- @@@titleFont -->
<!-- $$$zoom[overload1]$$$zoomqreal -->
<h3 class="fn" id="zoom"><a name="zoom"></a><span class="type">void</span> QChart::<span class="name">zoom</span>(<span class="type">qreal</span> <i>factor</i>)</h3>
<p>Zooms into the view by the custom factor <i>factor</i>.</p>
<p>A factor over 1.0 zooms into the view and a factor between 0.0 and 1.0 zooms out of it.</p>
<!-- @@@zoom -->
<!-- $$$zoomIn[overload1]$$$zoomIn -->
<h3 class="fn" id="zoomIn"><a name="zoomIn"></a><span class="type">void</span> QChart::<span class="name">zoomIn</span>()</h3>
<p>Zooms into the view by a factor of two.</p>
<!-- @@@zoomIn -->
<!-- $$$zoomIn$$$zoomInconstQRectF& -->
<h3 class="fn" id="zoomIn-1"><a name="zoomIn-1"></a><span class="type">void</span> QChart::<span class="name">zoomIn</span>(const <span class="type">QRectF</span> &amp;<i>rect</i>)</h3>
<p>Zooms into the view to a maximum level at which the rectangle <i>rect</i> is still fully visible.</p>
<p><b>Note: </b>This is not supported for polar charts.</p><!-- @@@zoomIn -->
<!-- $$$zoomOut[overload1]$$$zoomOut -->
<h3 class="fn" id="zoomOut"><a name="zoomOut"></a><span class="type">void</span> QChart::<span class="name">zoomOut</span>()</h3>
<p>Zooms out of the view by a factor of two.</p>
<!-- @@@zoomOut -->
<!-- $$$zoomReset[overload1]$$$zoomReset -->
<h3 class="fn" id="zoomReset"><a name="zoomReset"></a><span class="type">void</span> QChart::<span class="name">zoomReset</span>()</h3>
<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><!-- @@@zoomReset -->
</div>
        </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>