Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 1125

wt-doc-3.2.3-1.fc18.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::Chart::WCartesianChart Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="namespaceWt_1_1Chart.html">Chart</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html">WCartesianChart</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::Chart::WCartesianChart Class Reference<div class="ingroups"><a class="el" href="group__charts.html">Charts (Wt::Chart)</a> &#124; <a class="el" href="group__modelview.html">Model/view system</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::Chart::WCartesianChart" --><!-- doxytag: inherits="Wt::Chart::WAbstractChart" -->
<p>A cartesian chart.  
 <a href="classWt_1_1Chart_1_1WCartesianChart.html#details">More...</a></p>

<p><code>#include &lt;Wt/Chart/WCartesianChart&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::Chart::WCartesianChart:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1Chart_1_1WCartesianChart__inherit__graph.png" border="0" usemap="#Wt_1_1Chart_1_1WCartesianChart_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1Chart_1_1WCartesianChart_inherit__map" id="Wt_1_1Chart_1_1WCartesianChart_inherit__map">
<area shape="rect" href="classWt_1_1Chart_1_1WAbstractChart.html" title="Abstract base class for MVC&#45;based charts." alt="" coords="8,379,187,405"/><area shape="rect" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics." alt="" coords="25,304,169,331"/><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="25,229,169,256"/><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="33,155,161,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="48,80,147,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="49,5,145,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1Chart_1_1WCartesianChart-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#aa2c011ac373f1644b76932a81dc3b624">WCartesianChart</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new cartesian chart.  <a href="#aa2c011ac373f1644b76932a81dc3b624"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ab0ebde0bbb0ff228185ae767bfd7e788">WCartesianChart</a> (<a class="el" href="group__charts.html#ga8d63464f873580c77508e1c0c26cbfea">ChartType</a> type, <a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new cartesian chart.  <a href="#ab0ebde0bbb0ff228185ae767bfd7e788"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a02775290965d59ffba03da574925e387">setType</a> (<a class="el" href="group__charts.html#ga8d63464f873580c77508e1c0c26cbfea">ChartType</a> type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the chart type.  <a href="#a02775290965d59ffba03da574925e387"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__charts.html#ga8d63464f873580c77508e1c0c26cbfea">ChartType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a8885469f81160cac5c1ed51fc1166265">type</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the chart type.  <a href="#a8885469f81160cac5c1ed51fc1166265"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ac8638a7ae6b0d1141794d9c07336e500">setOrientation</a> (<a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the chart orientation.  <a href="#ac8638a7ae6b0d1141794d9c07336e500"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a4d08c4528b9819bd058dd7c34daca645">orientation</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the chart orientation.  <a href="#a4d08c4528b9819bd058dd7c34daca645"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a6c954fa4ed6d73f00ee973bfe3af5ed0">setXSeriesColumn</a> (int modelColumn)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the the model column for the X series.  <a href="#a6c954fa4ed6d73f00ee973bfe3af5ed0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a378a1ece6bf9acfb291cc6978c473acb">XSeriesColumn</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the model column for the X series.  <a href="#a378a1ece6bf9acfb291cc6978c473acb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#afa4ac6588e6e2e0dd93320c3a0541d46">addSeries</a> (const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;series)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a data series.  <a href="#afa4ac6588e6e2e0dd93320c3a0541d46"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a23ee6f5136dc540a7968f17c15524c10">removeSeries</a> (int modelColumn)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes a data series.  <a href="#a23ee6f5136dc540a7968f17c15524c10"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a5733d8d999095b6d4279f289a37eef98">setSeries</a> (const std::vector&lt; <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &gt; &amp;series)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets all data series.  <a href="#a5733d8d999095b6d4279f289a37eef98"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a96cf7387ebbe867dcbdd6aad9f48e72c">series</a> (int modelColumn)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a data series corresponding to a data column.  <a href="#a96cf7387ebbe867dcbdd6aad9f48e72c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a08d7f0e90c0190496dd499609b606bc5">series</a> (int modelColumn) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a data series corresponding to a data column.  <a href="#a08d7f0e90c0190496dd499609b606bc5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const std::vector&lt; <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a6123ce798788b747eec94c5399113a8d">series</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a list with the current data series.  <a href="#a6123ce798788b747eec94c5399113a8d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1Chart_1_1WAxis.html">WAxis</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#af966d6ee6b2e43e6b26e794459005375">axis</a> (<a class="el" href="group__charts.html#gaddb678f67fbd9f374fcee0922f158c9f">Axis</a> axis)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a chart axis.  <a href="#af966d6ee6b2e43e6b26e794459005375"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1Chart_1_1WAxis.html">WAxis</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a0ce614843d5fc81a0e262aea89a48ee1">axis</a> (<a class="el" href="group__charts.html#gaddb678f67fbd9f374fcee0922f158c9f">Axis</a> axis) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Accesses a chart axis.  <a href="#a0ce614843d5fc81a0e262aea89a48ee1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a5419bad74246b5cb94cd224e915bfe0f">setBarMargin</a> (double margin)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the margin between bars of different series.  <a href="#a5419bad74246b5cb94cd224e915bfe0f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ae6b73b06624ce73153b64683f18f0892">barMargin</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the margin between bars of different series.  <a href="#ae6b73b06624ce73153b64683f18f0892"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a26c3d97f4884da079e01e7b50447a915">setLegendEnabled</a> (bool enabled)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the legend.  <a href="#a26c3d97f4884da079e01e7b50447a915"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a3b5d000b17bad325e210cbf78a28c460">isLegendEnabled</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the legend is enabled.  <a href="#a3b5d000b17bad325e210cbf78a28c460"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ae4336637c800631714ec521cbf2aa452">setLegendLocation</a> (<a class="el" href="group__charts.html#ga950e490e52f40d945b7301bf3831f2af">LegendLocation</a> location, <a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3">Side</a> side, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> alignment)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the legend location.  <a href="#ae4336637c800631714ec521cbf2aa452"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a94505b419f2ed8ba4d939de57944397d">setLegendStyle</a> (const <a class="el" href="classWt_1_1WFont.html">WFont</a> &amp;font, const <a class="el" href="classWt_1_1WPen.html">WPen</a> &amp;border, const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;background)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the legend decoration.  <a href="#a94505b419f2ed8ba4d939de57944397d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__charts.html#ga950e490e52f40d945b7301bf3831f2af">LegendLocation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a9a443fcd46e00c3e8f78a99cdedf7f3c">legendLocation</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the legend location.  <a href="#a9a443fcd46e00c3e8f78a99cdedf7f3c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3">Side</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ad80a3e53f3d152efa4e4b9f076d7466e">legendSide</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the legend side.  <a href="#ad80a3e53f3d152efa4e4b9f076d7466e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a56b4dcffb80c56bcc987301aeaf36e5d">legendAlignment</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the legend alignment.  <a href="#a56b4dcffb80c56bcc987301aeaf36e5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a3d4bf0a01752e53854b9d945c2ceb00d">legendColumns</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the legend columns.  <a href="#a3d4bf0a01752e53854b9d945c2ceb00d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WLength.html">WLength</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#acb6ae4bddcf4231f055cb75c92447cf6">legendColumnWidth</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the legend column width.  <a href="#acb6ae4bddcf4231f055cb75c92447cf6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WFont.html">WFont</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a9a7bd63a73033268e0956fb260fcc0ae">legendFont</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the legend font.  <a href="#a9a7bd63a73033268e0956fb260fcc0ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WPen.html">WPen</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a966512cc3c00a1271b6b1ab9e3f7f93c">legendBorder</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the legend border pen.  <a href="#a966512cc3c00a1271b6b1ab9e3f7f93c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WBrush.html">WBrush</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#abcadcec1857388188fab29f0b7103878">legendBackground</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the legend background brush.  <a href="#abcadcec1857388188fab29f0b7103878"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a9f4133ef8280991032bded06ce2dc58a">setLegendColumns</a> (int columns, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;width)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures multiple legend columns.  <a href="#a9f4133ef8280991032bded06ce2dc58a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a6fb2219936b721b8829dc7093dcb5c16">paint</a> (<a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;painter, const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle=<a class="el" href="classWt_1_1WRectF.html">WRectF</a>()) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Paint the chart in a rectangle of the given painter.  <a href="#a6fb2219936b721b8829dc7093dcb5c16"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a96ca116a1d653e582867eb8a6f7343d3">drawMarker</a> (const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;series, <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;result) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the marker for a given data series.  <a href="#a96ca116a1d653e582867eb8a6f7343d3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a85b2ac77b71b9ba814ddc4c92c15ba67">renderLegendIcon</a> (<a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;painter, const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;pos, const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;series) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Renders the legend icon for a given data series.  <a href="#a85b2ac77b71b9ba814ddc4c92c15ba67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a3344582f6cca423f86d45375368b6d7f">renderLegendItem</a> (<a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;painter, const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;pos, const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;series) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Renders the legend item for a given data series.  <a href="#a3344582f6cca423f86d45375368b6d7f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WPointF.html">WPointF</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#acea610620a72eb855ff05de1665eb0fd">mapFromDevice</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;point, <a class="el" href="group__charts.html#gaddb678f67fbd9f374fcee0922f158c9f">Axis</a> ordinateAxis=OrdinateAxis) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Maps from device coordinates to model coordinates.  <a href="#acea610620a72eb855ff05de1665eb0fd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WPointF.html">WPointF</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ac040606ce4e3c4093f10d3fe65353c89">mapToDevice</a> (const boost::any &amp;xValue, const boost::any &amp;yValue, <a class="el" href="group__charts.html#gaddb678f67fbd9f374fcee0922f158c9f">Axis</a> axis=OrdinateAxis, int xSegment=0, int ySegment=0) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Maps model values onto chart coordinates.  <a href="#ac040606ce4e3c4093f10d3fe65353c89"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a8a6ef9a21d0ea1b96ba35eeca3759426">initLayout</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle=<a class="el" href="classWt_1_1WRectF.html">WRectF</a>())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the chart layout.  <a href="#a8a6ef9a21d0ea1b96ba35eeca3759426"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a18087559767dd82ff0ff51af5e418f19">createLegendItemWidget</a> (int index)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a widget which renders the a legend item.  <a href="#a18087559767dd82ff0ff51af5e418f19"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a7246bc96e5a29837f60bf51437c0449a">addDataPointArea</a> (const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;series, const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;xIndex, <a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *area)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a data point area (used for displaying e.g. tooltips).  <a href="#a7246bc96e5a29837f60bf51437c0449a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#aa6c394c4d9a801d088b7b02c3fd66b28">setAxisPadding</a> (int axisPadding)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the padding between the chart area and the axes.  <a href="#aa6c394c4d9a801d088b7b02c3fd66b28"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a23ca25416ea8d6774b7c1b8ebca8fe7f">axisPadding</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the padding between the chart area and the axes.  <a href="#a23ca25416ea8d6774b7c1b8ebca8fe7f"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a3c9c7e5fd246fd0d3e0efa0cd29dd997">paintEvent</a> (<a class="el" href="classWt_1_1WPaintDevice.html">WPaintDevice</a> *paintDevice)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Paints the widget.  <a href="#a3c9c7e5fd246fd0d3e0efa0cd29dd997"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1Chart_1_1WChart2DRenderer.html">WChart2DRenderer</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a7d76b83f395ee967bf7ca1339ca1c176">createRenderer</a> (<a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;painter, const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a renderer which renders the chart.  <a href="#a7d76b83f395ee967bf7ca1339ca1c176"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ad619b499d3bfec79614de38c682af118">modelColumnsInserted</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent, int start, int end)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when colums have been inserted in the model.  <a href="#ad619b499d3bfec79614de38c682af118"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a7f654939c038cface6128dc2b1826f33">modelColumnsRemoved</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent, int start, int end)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when colums have been removed from the model.  <a href="#a7f654939c038cface6128dc2b1826f33"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#aa2176777ed4c810101cd666cbf470699">modelRowsInserted</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent, int start, int end)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when rows have been inserted from the model.  <a href="#aa2176777ed4c810101cd666cbf470699"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a7221676a4216f5c194a7e8626543db82">modelRowsRemoved</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;parent, int start, int end)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when rows have been removed from the model.  <a href="#a7221676a4216f5c194a7e8626543db82"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#aeaf121941edbd310ca3d3a5d6dc4067e">modelDataChanged</a> (const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;topLeft, const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;bottomRight)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called when data has been changed in the model.  <a href="#aeaf121941edbd310ca3d3a5d6dc4067e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ac1c54af8fac90284c76cda536ca7f6f3">modelChanged</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called whenever the entire model was changed.  <a href="#ac1c54af8fac90284c76cda536ca7f6f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a9e2366f3bef4824c45c4bf71cf16a087">modelReset</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Method called whenever the entire model was reset.  <a href="#a9e2366f3bef4824c45c4bf71cf16a087"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A cartesian chart. </p>
<p>A cartesian chart is a chart that uses X and Y axes. It can display one or multiple data series, which each may be rendered using bars, lines, areas, or points.</p>
<p>To use a cartesian chart, the minimum you need to do is set a model using <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#aa23d116689e939301470398df8ad5c8b" title="Set the model.">setModel()</a>, set the model column that holds the X data using <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a6c954fa4ed6d73f00ee973bfe3af5ed0" title="Sets the the model column for the X series.">setXSeriesColumn(int modelColumn)</a>, and add one or more series using <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#afa4ac6588e6e2e0dd93320c3a0541d46" title="Adds a data series.">addSeries(const WDataSeries&amp;)</a>. Each series corresponds to one data column that holds Y data.</p>
<p>A cartesian chart is either a <a class="el" href="group__charts.html#gga8d63464f873580c77508e1c0c26cbfeaaebfd9bd11d1126f2db7ff891c04c29f9">CategoryChart</a> or a <a class="el" href="group__charts.html#gga8d63464f873580c77508e1c0c26cbfeaa6ddab43d32242eb28831938a1e469a1f">ScatterPlot</a>.</p>
<p>In a <b>CategoryChart</b>, the X series represent different categories, which are listed consecutively in model row order. The X axis scale is set to <a class="el" href="group__charts.html#ggadfcaed8cd6ff52f5747f7df48f2eeab6aa9b1356757a7b0935c3302c32798ef14">CategoryScale</a>.</p>
<div class="image">
<img src="ChartWCartesianChart-1.png" alt="ChartWCartesianChart-1.png"/>
<div class="caption">
A category chart with bar series</div></div>
<p> Each series may be rendered differently, and this is configured in the data series (see <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html" title="A single data series in a cartesian chart.">WDataSeries</a> for more information).</p>
<p>In a <b>ScatterPlot</b>, the X series data are interpreted as numbers on a numerical scale. The scale for the X axis defaults to a <a class="el" href="group__charts.html#ggadfcaed8cd6ff52f5747f7df48f2eeab6ad1c254fd10596e2565b32fd6f5967094">LinearScale</a>, but this may be changed to a <a class="el" href="group__charts.html#ggadfcaed8cd6ff52f5747f7df48f2eeab6aaa627030efa552170a889d7a80a65a12">DateScale</a> when the X series contains dates (of type <a class="el" href="classWt_1_1WDate.html" title="A value class that represents a date on the Gregorian calendar.">WDate</a>) to create a time series chart, or to a <a class="el" href="group__charts.html#ggadfcaed8cd6ff52f5747f7df48f2eeab6afba90921c9efb6c5131cdb1590bfa406">LogScale</a>. A ScatterPlot supports the same types of data series as a CategoryChart, but does not support stacking. In a scatter plot, the X series do not need to be ordered in increasing values, and may be set differently for each dataseries using <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html#a9361e12e94699f59090ae8ac3a4921df" title="Sets the X series column.">WDataSeries::setXSeriesColumn(int modelColumn)</a>.</p>
<div class="image">
<img src="ChartWCartesianChart-2.png" alt="ChartWCartesianChart-2.png"/>
<div class="caption">
A time series scatter plot with line series</div></div>
<p> Missing data in a model series Y values is interpreted as a <em>break</em>. For curve-like series, this breaks the curve (or line).</p>
<p>The cartesian chart has support for dual Y axes. Each data series may be bound to one of the two Y axes. By default, only the first Y axis is displayed. To show the second Y axis you will need to call:</p>
<div class="fragment"><pre class="fragment"> chart-&gt;<a class="code" href="classWt_1_1Chart_1_1WCartesianChart.html#af966d6ee6b2e43e6b26e794459005375" title="Returns a chart axis.">axis</a>(<a class="code" href="group__charts.html#ggaddb678f67fbd9f374fcee0922f158c9fadbfcf55c246aa3a385974a185f4220e3" title="Second Y Axis.">Y2Axis</a>).setVisible(<span class="keyword">true</span>);
</pre></div><p>By default a chart has a horizontal X axis and a vertical Y axis, which corresponds to a <a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912af916b7ec24727db2d972f0770170c7f5">Vertical</a> orientation. The orientation may be changed to <a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912ac2ebf22b096a22b18eef23e736aa2e28">Horizontal</a> using <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ac8638a7ae6b0d1141794d9c07336e500" title="Sets the chart orientation.">setOrientation()</a>.</p>
<p>The styling of the series data are dictated by a palette which may be set using <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a044936e6358c8efc55699effc4b946d8" title="Set a palette for the chart.">setPalette(WChartPalette *)</a>, but may be overridden by settings in each data series.</p>
<h3>CSS</h3>
<p>Styling through CSS is not applicable.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WDataSeries.html" title="A single data series in a cartesian chart.">WDataSeries</a>, <a class="el" href="classWt_1_1Chart_1_1WAxis.html" title="Class which represents an axis of a cartesian chart.">WAxis</a> </dd>
<dd>
<a class="el" href="classWt_1_1Chart_1_1WPieChart.html" title="A pie chart.">WPieChart</a> </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa2c011ac373f1644b76932a81dc3b624"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::WCartesianChart" ref="aa2c011ac373f1644b76932a81dc3b624" args="(WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::Chart::WCartesianChart::WCartesianChart </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new cartesian chart. </p>
<p>Creates a cartesian chart of type <a class="el" href="group__charts.html#gga8d63464f873580c77508e1c0c26cbfeaaebfd9bd11d1126f2db7ff891c04c29f9">CategoryChart</a>. </p>

</div>
</div>
<a class="anchor" id="ab0ebde0bbb0ff228185ae767bfd7e788"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::WCartesianChart" ref="ab0ebde0bbb0ff228185ae767bfd7e788" args="(ChartType type, WContainerWidget *parent=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::Chart::WCartesianChart::WCartesianChart </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__charts.html#ga8d63464f873580c77508e1c0c26cbfea">ChartType</a>&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a new cartesian chart. </p>
<p>Creates a cartesian chart of the indicated <code>type</code>. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7246bc96e5a29837f60bf51437c0449a"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::addDataPointArea" ref="a7246bc96e5a29837f60bf51437c0449a" args="(const WDataSeries &amp;series, const WModelIndex &amp;xIndex, WAbstractArea *area)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::addDataPointArea </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;&#160;</td>
          <td class="paramname"><em>series</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>xIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WAbstractArea.html">WAbstractArea</a> *&#160;</td>
          <td class="paramname"><em>area</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a data point area (used for displaying e.g. tooltips). </p>
<p>You may want to specialize this is if you wish to modify (or delete) the area.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>Currently, an area is only created if the <a class="el" href="group__modelview.html#gga0ae864e12320f9f89172735e075ed068abde5f65c6b5cab667d11d1ceb87e4606" title="Role for a tooltip.">Wt::ToolTipRole</a> data at the data point is not empty. </dd></dl>

</div>
</div>
<a class="anchor" id="afa4ac6588e6e2e0dd93320c3a0541d46"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::addSeries" ref="afa4ac6588e6e2e0dd93320c3a0541d46" args="(const WDataSeries &amp;series)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::addSeries </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;&#160;</td>
          <td class="paramname"><em>series</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Adds a data series. </p>
<p>A single chart may display one or more data series. Each data series displays data from a single model column in the chart. Series are plotted in the order that they have been added to the chart.</p>
<p>The series column is reset to -1 when the model is set (or changed). Thus you need to set a model before configuring the series.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a23ee6f5136dc540a7968f17c15524c10" title="Removes a data series.">removeSeries()</a>, <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a5733d8d999095b6d4279f289a37eef98" title="Sets all data series.">setSeries()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af966d6ee6b2e43e6b26e794459005375"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::axis" ref="af966d6ee6b2e43e6b26e794459005375" args="(Axis axis)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Chart_1_1WAxis.html">WAxis</a> &amp; Wt::Chart::WCartesianChart::axis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__charts.html#gaddb678f67fbd9f374fcee0922f158c9f">Axis</a>&#160;</td>
          <td class="paramname"><em>axis</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a chart axis. </p>
<p>Returns a reference to the specified <code>axis</code>. </p>

</div>
</div>
<a class="anchor" id="a0ce614843d5fc81a0e262aea89a48ee1"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::axis" ref="a0ce614843d5fc81a0e262aea89a48ee1" args="(Axis axis) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1Chart_1_1WAxis.html">WAxis</a> &amp; Wt::Chart::WCartesianChart::axis </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__charts.html#gaddb678f67fbd9f374fcee0922f158c9f">Axis</a>&#160;</td>
          <td class="paramname"><em>axis</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Accesses a chart axis. </p>
<p>Returns a const reference to the specified <code>axis</code>. </p>

</div>
</div>
<a class="anchor" id="a23ca25416ea8d6774b7c1b8ebca8fe7f"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::axisPadding" ref="a23ca25416ea8d6774b7c1b8ebca8fe7f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::Chart::WCartesianChart::axisPadding </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the padding between the chart area and the axes. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#aa6c394c4d9a801d088b7b02c3fd66b28" title="Sets the padding between the chart area and the axes.">setAxisPadding()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae6b73b06624ce73153b64683f18f0892"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::barMargin" ref="ae6b73b06624ce73153b64683f18f0892" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Wt::Chart::WCartesianChart::barMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the margin between bars of different series. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a5419bad74246b5cb94cd224e915bfe0f" title="Sets the margin between bars of different series.">setBarMargin(double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a18087559767dd82ff0ff51af5e418f19"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::createLegendItemWidget" ref="a18087559767dd82ff0ff51af5e418f19" args="(int index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * Wt::Chart::WCartesianChart::createLegendItemWidget </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a widget which renders the a legend item. </p>
<p>The legend item widget will contain a text and a <a class="el" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics.">WPaintedWidget</a> which draws the series' symbol. </p>

</div>
</div>
<a class="anchor" id="a7d76b83f395ee967bf7ca1339ca1c176"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::createRenderer" ref="a7d76b83f395ee967bf7ca1339ca1c176" args="(WPainter &amp;painter, const WRectF &amp;rectangle) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Chart_1_1WChart2DRenderer.html">WChart2DRenderer</a> * Wt::Chart::WCartesianChart::createRenderer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a renderer which renders the chart. </p>
<p>The rendering of the chart is delegated to a <a class="el" href="classWt_1_1Chart_1_1WChart2DRenderer.html" title="Helper class for rendering a cartesian chart.">WChart2DRenderer</a> class, which will render the chart within the <code>rectangle</code> of the <code>painter</code>.</p>
<p>You may want to reimplement this method if you wish to override one or more aspects of the rendering, by returning an new instance of a specialized <a class="el" href="classWt_1_1Chart_1_1WChart2DRenderer.html" title="Helper class for rendering a cartesian chart.">WChart2DRenderer</a> class.</p>
<p>After rendering, the renderer is deleted.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WChart2DRenderer.html#a58010c9bb22a11d14e0e86f98b1ae8cb" title="Renders the chart.">WChart2DRenderer::render()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a96ca116a1d653e582867eb8a6f7343d3"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::drawMarker" ref="a96ca116a1d653e582867eb8a6f7343d3" args="(const WDataSeries &amp;series, WPainterPath &amp;result) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::drawMarker </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;&#160;</td>
          <td class="paramname"><em>series</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&#160;</td>
          <td class="paramname"><em>result</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws the marker for a given data series. </p>
<p>Draws the marker for the indicated <code>series</code> in the <code>result</code>. This method is called while painting the chart, and you may want to reimplement this method if you wish to provide a custom marker for a particular data series.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a26c3d97f4884da079e01e7b50447a915" title="Enables the legend.">setLegendEnabled()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a8a6ef9a21d0ea1b96ba35eeca3759426"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::initLayout" ref="a8a6ef9a21d0ea1b96ba35eeca3759426" args="(const WRectF &amp;rectangle=WRectF())" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::initLayout </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em> = <code><a class="el" href="classWt_1_1WRectF.html">WRectF</a>()</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializes the chart layout. </p>
<p>A cartesian chart delegates the rendering and layout of the chart and its axes to a <a class="el" href="classWt_1_1Chart_1_1WChart2DRenderer.html" title="Helper class for rendering a cartesian chart.">WChart2DRenderer</a>. As a consequence, the mapping between model and device coordinates is also established by this class, which is only created on-demand when painging.</p>
<p>If you wish to establish the layout, in order to use the <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#acea610620a72eb855ff05de1665eb0fd" title="Maps from device coordinates to model coordinates.">mapFromDevice()</a> and <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ac040606ce4e3c4093f10d3fe65353c89" title="Maps model values onto chart coordinates.">mapToDevice()</a> methods before the chart has been rendered, you should call this method.</p>
<p>Unless a specific chart rectangle is specified, the entire widget area is assumed. </p>

</div>
</div>
<a class="anchor" id="a3b5d000b17bad325e210cbf78a28c460"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::isLegendEnabled" ref="a3b5d000b17bad325e210cbf78a28c460" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::Chart::WCartesianChart::isLegendEnabled </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the legend is enabled. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a26c3d97f4884da079e01e7b50447a915" title="Enables the legend.">setLegendEnabled()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a56b4dcffb80c56bcc987301aeaf36e5d"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::legendAlignment" ref="a56b4dcffb80c56bcc987301aeaf36e5d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> Wt::Chart::WCartesianChart::legendAlignment </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the legend alignment. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ae4336637c800631714ec521cbf2aa452" title="Configures the legend location.">setLegendLocation()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abcadcec1857388188fab29f0b7103878"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::legendBackground" ref="abcadcec1857388188fab29f0b7103878" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WBrush.html">WBrush</a> Wt::Chart::WCartesianChart::legendBackground </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the legend background brush. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a94505b419f2ed8ba4d939de57944397d" title="Configures the legend decoration.">setLegendStyle()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a966512cc3c00a1271b6b1ab9e3f7f93c"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::legendBorder" ref="a966512cc3c00a1271b6b1ab9e3f7f93c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WPen.html">WPen</a> Wt::Chart::WCartesianChart::legendBorder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the legend border pen. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a94505b419f2ed8ba4d939de57944397d" title="Configures the legend decoration.">setLegendStyle()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a3d4bf0a01752e53854b9d945c2ceb00d"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::legendColumns" ref="a3d4bf0a01752e53854b9d945c2ceb00d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::Chart::WCartesianChart::legendColumns </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the legend columns. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a9f4133ef8280991032bded06ce2dc58a" title="Configures multiple legend columns.">setLegendColumns()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="acb6ae4bddcf4231f055cb75c92447cf6"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::legendColumnWidth" ref="acb6ae4bddcf4231f055cb75c92447cf6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WLength.html">WLength</a> Wt::Chart::WCartesianChart::legendColumnWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the legend column width. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a9f4133ef8280991032bded06ce2dc58a" title="Configures multiple legend columns.">setLegendColumns()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9a7bd63a73033268e0956fb260fcc0ae"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::legendFont" ref="a9a7bd63a73033268e0956fb260fcc0ae" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WFont.html">WFont</a> Wt::Chart::WCartesianChart::legendFont </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the legend font. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a94505b419f2ed8ba4d939de57944397d" title="Configures the legend decoration.">setLegendStyle()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9a443fcd46e00c3e8f78a99cdedf7f3c"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::legendLocation" ref="a9a443fcd46e00c3e8f78a99cdedf7f3c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__charts.html#ga950e490e52f40d945b7301bf3831f2af">LegendLocation</a> Wt::Chart::WCartesianChart::legendLocation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the legend location. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ae4336637c800631714ec521cbf2aa452" title="Configures the legend location.">setLegendLocation()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad80a3e53f3d152efa4e4b9f076d7466e"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::legendSide" ref="ad80a3e53f3d152efa4e4b9f076d7466e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3">Side</a> Wt::Chart::WCartesianChart::legendSide </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the legend side. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ae4336637c800631714ec521cbf2aa452" title="Configures the legend location.">setLegendLocation()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="acea610620a72eb855ff05de1665eb0fd"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::mapFromDevice" ref="acea610620a72eb855ff05de1665eb0fd" args="(const WPointF &amp;point, Axis ordinateAxis=OrdinateAxis) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WPointF.html">WPointF</a> Wt::Chart::WCartesianChart::mapFromDevice </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__charts.html#gaddb678f67fbd9f374fcee0922f158c9f">Axis</a>&#160;</td>
          <td class="paramname"><em>ordinateAxis</em> = <code>OrdinateAxis</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Maps from device coordinates to model coordinates. </p>
<p>Maps a position in the chart back to model coordinates.</p>
<p>This uses the axis dimensions that are based on the latest chart rendering. If you have not yet rendered the chart, or wish to already the mapping reflect model changes since the last rendering, you should call <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a8a6ef9a21d0ea1b96ba35eeca3759426" title="Initializes the chart layout.">initLayout()</a> first.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ac040606ce4e3c4093f10d3fe65353c89" title="Maps model values onto chart coordinates.">mapToDevice()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac040606ce4e3c4093f10d3fe65353c89"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::mapToDevice" ref="ac040606ce4e3c4093f10d3fe65353c89" args="(const boost::any &amp;xValue, const boost::any &amp;yValue, Axis axis=OrdinateAxis, int xSegment=0, int ySegment=0) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WPointF.html">WPointF</a> Wt::Chart::WCartesianChart::mapToDevice </td>
          <td>(</td>
          <td class="paramtype">const boost::any &amp;&#160;</td>
          <td class="paramname"><em>xValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const boost::any &amp;&#160;</td>
          <td class="paramname"><em>yValue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__charts.html#gaddb678f67fbd9f374fcee0922f158c9f">Axis</a>&#160;</td>
          <td class="paramname"><em>axis</em> = <code>OrdinateAxis</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xSegment</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ySegment</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Maps model values onto chart coordinates. </p>
<p>This returns the chart device coordinates for a (x,y) pair of model values.</p>
<p>This uses the axis dimensions that are based on the latest chart rendering. If you have not yet rendered the chart, or wish to already the mapping reflect model changes since the last rendering, you should call <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a8a6ef9a21d0ea1b96ba35eeca3759426" title="Initializes the chart layout.">initLayout()</a> first.</p>
<p>The <code>xSegment</code> and <code>ySegment</code> arguments are relevant only when the corresponding axis is broken using <a class="el" href="classWt_1_1Chart_1_1WAxis.html#a159f74342b4800e5c5be11eb1b2a351b" title="Specify a range that needs to be omitted from the axis.">WAxis::setBreak()</a>. Then, its possible values may be 0 (below the break) or 1 (above the break).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#acea610620a72eb855ff05de1665eb0fd" title="Maps from device coordinates to model coordinates.">mapFromDevice()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac1c54af8fac90284c76cda536ca7f6f3"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::modelChanged" ref="ac1c54af8fac90284c76cda536ca7f6f3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::modelChanged </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called whenever the entire model was changed. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#aa23d116689e939301470398df8ad5c8b" title="Set the model.">setModel(WAbstractItemModel *)</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a9e3df17843eedb5f32dc1407f115fca4">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="ad619b499d3bfec79614de38c682af118"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::modelColumnsInserted" ref="ad619b499d3bfec79614de38c682af118" args="(const WModelIndex &amp;parent, int start, int end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::modelColumnsInserted </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when colums have been inserted in the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#ac56221d07f5ef246f10dccc93756cb3c" title="Signal emitted after a number of columns were inserted.">WAbstractItemModel::columnsInserted</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a12430c6057fb5d65458c4f8c9c42a034">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a7f654939c038cface6128dc2b1826f33"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::modelColumnsRemoved" ref="a7f654939c038cface6128dc2b1826f33" args="(const WModelIndex &amp;parent, int start, int end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::modelColumnsRemoved </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when colums have been removed from the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#a2aecbfc4363903aed6d3ce4d176c82d0" title="Signal emitted after a number of columns were removed.">WAbstractItemModel::columnsRemoved</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#ad235f839f2e46152ff41fda54a29cea7">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="aeaf121941edbd310ca3d3a5d6dc4067e"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::modelDataChanged" ref="aeaf121941edbd310ca3d3a5d6dc4067e" args="(const WModelIndex &amp;topLeft, const WModelIndex &amp;bottomRight)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::modelDataChanged </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>topLeft</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>bottomRight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when data has been changed in the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#aa074e5bc55394252a609ef17d071b563" title="Signal emitted when some data was changed.">WAbstractItemModel::dataChanged</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#aec6e96688e308aec05cdf3bf085837e2">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a9e2366f3bef4824c45c4bf71cf16a087"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::modelReset" ref="a9e2366f3bef4824c45c4bf71cf16a087" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::modelReset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called whenever the entire model was reset. </p>
<p>Bound to the <a class="el" href="classWt_1_1WAbstractItemModel.html#ae28a4ba2ce1dd93e7479dfa152a65efc" title="Signal emitted when the model was reset.">WAbstractItemModel::modelReset()</a> and <a class="el" href="classWt_1_1WAbstractItemModel.html#afe7cb1d5186881f83aa8f0e452aaef66" title="Signal emitted when the layout is changed.">WAbstractItemModel::layoutChanged()</a> signals. </p>

<p>Reimplemented from <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#abf2d10492352754f92dc11cea27625cb">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="aa2176777ed4c810101cd666cbf470699"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::modelRowsInserted" ref="aa2176777ed4c810101cd666cbf470699" args="(const WModelIndex &amp;parent, int start, int end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::modelRowsInserted </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when rows have been inserted from the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#a54c971088bb9b424f97fe31c17f8f12f" title="Signal emitted after a number of rows were inserted.">WAbstractItemModel::rowsInserted</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a69ef1dd5294dbd1de8f6ada34d96af45">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a7221676a4216f5c194a7e8626543db82"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::modelRowsRemoved" ref="a7221676a4216f5c194a7e8626543db82" args="(const WModelIndex &amp;parent, int start, int end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::modelRowsRemoved </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WModelIndex.html">WModelIndex</a> &amp;&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [private, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Method called when rows have been removed from the model. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WAbstractItemModel.html#a0f73bbfb08f2739ac12881f62a61bc7f" title="Signal emitted after a number of rows were removed.">WAbstractItemModel::rowsRemoved</a> </dd></dl>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#a1857420ee055502380caa45446e5c0c4">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a4d08c4528b9819bd058dd7c34daca645"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::orientation" ref="a4d08c4528b9819bd058dd7c34daca645" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> Wt::Chart::WCartesianChart::orientation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the chart orientation. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ac8638a7ae6b0d1141794d9c07336e500" title="Sets the chart orientation.">setOrientation()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6fb2219936b721b8829dc7093dcb5c16"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::paint" ref="a6fb2219936b721b8829dc7093dcb5c16" args="(WPainter &amp;painter, const WRectF &amp;rectangle=WRectF()) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::paint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em> = <code><a class="el" href="classWt_1_1WRectF.html">WRectF</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paint the chart in a rectangle of the given painter. </p>
<p>Paints the chart inside the <em>painter</em>, in the area indicated by <em>rectangle</em>. When <em>rectangle</em> is a null rectangle, the entire painter <a class="el" href="classWt_1_1WPainter.html#a0bcac25d9328887ed15669b4a4ae52de">window</a> is used. </p>

<p>Implements <a class="el" href="classWt_1_1Chart_1_1WAbstractChart.html#af642c65474e95ec0969906d8d31e2862">Wt::Chart::WAbstractChart</a>.</p>

</div>
</div>
<a class="anchor" id="a3c9c7e5fd246fd0d3e0efa0cd29dd997"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::paintEvent" ref="a3c9c7e5fd246fd0d3e0efa0cd29dd997" args="(WPaintDevice *paintDevice)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::paintEvent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPaintDevice.html">WPaintDevice</a> *&#160;</td>
          <td class="paramname"><em>paintDevice</em></td><td>)</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Paints the widget. </p>
<p>You should reimplement this method to paint the contents of the widget, using the given paintDevice. </p>

<p>Implements <a class="el" href="classWt_1_1WPaintedWidget.html#ad8ce22eff41754c8616f45851f57fb1a">Wt::WPaintedWidget</a>.</p>

</div>
</div>
<a class="anchor" id="a23ee6f5136dc540a7968f17c15524c10"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::removeSeries" ref="a23ee6f5136dc540a7968f17c15524c10" args="(int modelColumn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::removeSeries </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelColumn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Removes a data series. </p>
<p>This removes the first data series which plots the given <code>modelColumn</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#afa4ac6588e6e2e0dd93320c3a0541d46" title="Adds a data series.">addSeries()</a>, <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a5733d8d999095b6d4279f289a37eef98" title="Sets all data series.">setSeries()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a85b2ac77b71b9ba814ddc4c92c15ba67"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::renderLegendIcon" ref="a85b2ac77b71b9ba814ddc4c92c15ba67" args="(WPainter &amp;painter, const WPointF &amp;pos, const WDataSeries &amp;series) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::renderLegendIcon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;&#160;</td>
          <td class="paramname"><em>series</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Renders the legend icon for a given data series. </p>
<p>Renders the legend icon for the indicated <code>series</code> in the <code>painter</code> at position <code>pos</code>.</p>
<p>This method is called while rendering a legend item, and you may want to reimplement this method if you wish to provide a custom legend icon for a particular data series.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a3344582f6cca423f86d45375368b6d7f" title="Renders the legend item for a given data series.">renderLegendItem()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a3344582f6cca423f86d45375368b6d7f"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::renderLegendItem" ref="a3344582f6cca423f86d45375368b6d7f" args="(WPainter &amp;painter, const WPointF &amp;pos, const WDataSeries &amp;series) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::renderLegendItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPainter.html">WPainter</a> &amp;&#160;</td>
          <td class="paramname"><em>painter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp;&#160;</td>
          <td class="paramname"><em>series</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Renders the legend item for a given data series. </p>
<p>Renders the legend item for the indicated <code>series</code> in the <code>painter</code> at position <code>pos</code>. The default implementation draws the marker, and the series description to the right. The series description is taken from the model's header data for that series' data column.</p>
<p>This method is called while painting the chart, and you may want to reimplement this method if you wish to provide a custom marker for a particular data series.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a26c3d97f4884da079e01e7b50447a915" title="Enables the legend.">setLegendEnabled()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a96cf7387ebbe867dcbdd6aad9f48e72c"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::series" ref="a96cf7387ebbe867dcbdd6aad9f48e72c" args="(int modelColumn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp; Wt::Chart::WCartesianChart::series </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelColumn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a data series corresponding to a data column. </p>
<p>Returns a reference to the first data series that plots data from <code>modelColumn</code>. </p>

</div>
</div>
<a class="anchor" id="a08d7f0e90c0190496dd499609b606bc5"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::series" ref="a08d7f0e90c0190496dd499609b606bc5" args="(int modelColumn) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &amp; Wt::Chart::WCartesianChart::series </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelColumn</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a data series corresponding to a data column. </p>
<p>Returns a const reference to the first data series that plots data from <code>modelColumn</code>. </p>

</div>
</div>
<a class="anchor" id="a6123ce798788b747eec94c5399113a8d"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::series" ref="a6123ce798788b747eec94c5399113a8d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a>&gt;&amp; Wt::Chart::WCartesianChart::series </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a list with the current data series. </p>
<p>Returns the complete list of current data series.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a5733d8d999095b6d4279f289a37eef98" title="Sets all data series.">setSeries(const std::vector&lt;WDataSeries&gt;&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa6c394c4d9a801d088b7b02c3fd66b28"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setAxisPadding" ref="aa6c394c4d9a801d088b7b02c3fd66b28" args="(int axisPadding)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setAxisPadding </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>axisPadding</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the padding between the chart area and the axes. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a23ca25416ea8d6774b7c1b8ebca8fe7f" title="Returns the padding between the chart area and the axes.">axisPadding()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5419bad74246b5cb94cd224e915bfe0f"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setBarMargin" ref="a5419bad74246b5cb94cd224e915bfe0f" args="(double margin)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setBarMargin </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>margin</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the margin between bars of different series. </p>
<p>Use this method to change the margin that is set between bars of different series. The margin is specified as a fraction of the width. For example, a value of 0.1 adds a 10% margin between bars of each series. Negative values are also allowed. For example, use a margin of -1 to plot the bars of different series on top of each other.</p>
<p>The default value is 0. </p>

</div>
</div>
<a class="anchor" id="a9f4133ef8280991032bded06ce2dc58a"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setLegendColumns" ref="a9f4133ef8280991032bded06ce2dc58a" args="(int columns, const WLength &amp;width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setLegendColumns </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>columns</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;&#160;</td>
          <td class="paramname"><em>width</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configures multiple legend columns. </p>
<p>Multiple columns are typically useful when placing the legend at the top or at the bottom of the chart.</p>
<p>The default value is a single column, 100 pixels wide. </p>

</div>
</div>
<a class="anchor" id="a26c3d97f4884da079e01e7b50447a915"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setLegendEnabled" ref="a26c3d97f4884da079e01e7b50447a915" args="(bool enabled)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setLegendEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enables the legend. </p>
<p>The location of the legend can be configured using <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ae4336637c800631714ec521cbf2aa452" title="Configures the legend location.">setLegendLocation()</a>. Only series for which the legend is enabled or included in this legend.</p>
<p>The default value is <code>false</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd>see <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html#a6e4373d17cf866dcf565fa32f6ca1f6b" title="Returns whether this series has an entry in the legend.">WDataSeries::isLegendEnabled()</a>, <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#ae4336637c800631714ec521cbf2aa452" title="Configures the legend location.">setLegendLocation()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae4336637c800631714ec521cbf2aa452"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setLegendLocation" ref="ae4336637c800631714ec521cbf2aa452" args="(LegendLocation location, Side side, AlignmentFlag alignment)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setLegendLocation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__charts.html#ga950e490e52f40d945b7301bf3831f2af">LegendLocation</a>&#160;</td>
          <td class="paramname"><em>location</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3">Side</a>&#160;</td>
          <td class="paramname"><em>side</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a>&#160;</td>
          <td class="paramname"><em>alignment</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configures the legend location. </p>
<p>The legend can be renderd either inside or outside of the chart area. When <code>location</code> is <a class="el" href="group__charts.html#gga950e490e52f40d945b7301bf3831f2afaa18c914aece5c5fe39383dbe73416bcb">Chart::LegendInside</a>, the legend will be rendered inside the chart. When <code>location</code> is <a class="el" href="group__charts.html#gga950e490e52f40d945b7301bf3831f2afa548eafc21c2331bfa7b9ab8508fe49fd">Chart::Legendoutside</a>, the legend is rendered outside the chart, in the chart padding area.</p>
<p>The provided <code>side</code> can either be <a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3a6568fecac7c7d7223afaed240bcfdd9e" title="Left side.">Wt::Left</a>, <a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3acf431c3ce5eb6f14c0390feb14a68004" title="Right side.">Wt::Right</a>, <a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3a68b058364f8c2380c1d369a321f22f92" title="Top side.">Wt::Top</a>, <a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3a87ae7d3cb692a5a4e8f18a7fea93a8a8" title="Bottom side.">Wt::Bottom</a> and configures the side of the chart at which the legend is displayed.</p>
<p>The <code>alignment</code> specifies how the legend is aligned. This can be a horizontal alignment flag (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fad033ef69b45d0b75633be34168c9b606" title="Align to the left.">Wt::AlignLeft</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa121104cdbb5db77c7d038813a93998e5" title="Align horizontally in the center.">Wt::AlignCenter</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fab250310385383f0b2f68d4e0ad5567e1" title="Align to the right.">Wt::AlignRight</a>), when the <code>side</code> is Bottom or Top, or a vertical alignment flag (<a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa58fe5182bd266132c59718c6d30945a9" title="Align top of widget with top of tallest sibling widget.">Wt::AlignTop</a>, <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>, or <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa4f2aa4abba8500e25651bf8db5f0c162" title="Align bottom of widget to the bottom of the lowest sigling widget.">Wt::AlignBottom</a>) when the <code>side</code> is Left or Right.</p>
<p>The default location is <a class="el" href="group__charts.html#gga950e490e52f40d945b7301bf3831f2afa548eafc21c2331bfa7b9ab8508fe49fd">Chart::LegendOutside</a>, <a class="el" href="namespaceWt.html#a5a6f4636bcc6ab3c075165d249b3a5a3acf431c3ce5eb6f14c0390feb14a68004" title="Right side.">Wt::Right</a> and <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143fa2ed90f01dbf74049f428d33769d48e3f" title="Align vertically the middle to the middle of the parent widget.">Wt::AlignMiddle</a>.</p>
<p>To have more control over the legend, you could reimplement the <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a3344582f6cca423f86d45375368b6d7f" title="Renders the legend item for a given data series.">renderLegendItem()</a> method to customize how one item in the legend is rendered, or, alternatively you can disable the legend generated by the chart itself, and reimplement the <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a6fb2219936b721b8829dc7093dcb5c16" title="Paint the chart in a rectangle of the given painter.">paint()</a> method in which you use the <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a3344582f6cca423f86d45375368b6d7f" title="Renders the legend item for a given data series.">renderLegendItem()</a> method repeatedly to render a customized legend.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WDataSeries.html#adbddd50fc4ccd1608987900f0231bd50" title="Enables the entry for this series in the legend.">WDataSeries::setLegendEnabled()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a94505b419f2ed8ba4d939de57944397d"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setLegendStyle" ref="a94505b419f2ed8ba4d939de57944397d" args="(const WFont &amp;font, const WPen &amp;border, const WBrush &amp;background)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setLegendStyle </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WFont.html">WFont</a> &amp;&#160;</td>
          <td class="paramname"><em>font</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPen.html">WPen</a> &amp;&#160;</td>
          <td class="paramname"><em>border</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;&#160;</td>
          <td class="paramname"><em>background</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configures the legend decoration. </p>
<p>This configures the font, border and background for the legend.</p>
<p>The default font is a 10pt sans serif font (the same as the default axis label font), the default <code>border</code> is <a class="el" href="group__painting.html#ggab70170afb6347d18ff9dac17e05e133eaa8125e799a1289cd6dd0b2595a496a82">NoPen</a> and the default <code>background</code> is <a class="el" href="group__painting.html#ggaf67a889bc5e9f8ab3a59fe58b0fa2128aa6f513232fadbbcaf8a576b7aaefc67a">NoBrush</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a26c3d97f4884da079e01e7b50447a915" title="Enables the legend.">setLegendEnabled()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac8638a7ae6b0d1141794d9c07336e500"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setOrientation" ref="ac8638a7ae6b0d1141794d9c07336e500" args="(Orientation orientation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setOrientation </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&#160;</td>
          <td class="paramname"><em>orientation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the chart orientation. </p>
<p>Sets the chart orientation, which corresponds to the orientation of the Y axis: a <a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912af916b7ec24727db2d972f0770170c7f5" title="Vertical.">Wt::Vertical</a> orientation corresponds to the conventional way of a horizontal X axis and vertical Y axis. A <a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912ac2ebf22b096a22b18eef23e736aa2e28" title="Horizontal.">Wt::Horizontal</a> orientation is the other way around.</p>
<p>The default orientation is <a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912af916b7ec24727db2d972f0770170c7f5" title="Vertical.">Wt::Vertical</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a4d08c4528b9819bd058dd7c34daca645" title="Returns the chart orientation.">orientation()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5733d8d999095b6d4279f289a37eef98"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setSeries" ref="a5733d8d999095b6d4279f289a37eef98" args="(const std::vector&lt; WDataSeries &gt; &amp;series)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setSeries </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html">WDataSeries</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>series</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets all data series. </p>
<p>Replaces the current list of series with the new list.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a96cf7387ebbe867dcbdd6aad9f48e72c" title="Returns a data series corresponding to a data column.">series()</a>, <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#afa4ac6588e6e2e0dd93320c3a0541d46" title="Adds a data series.">addSeries()</a>, <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a23ee6f5136dc540a7968f17c15524c10" title="Removes a data series.">removeSeries()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a02775290965d59ffba03da574925e387"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setType" ref="a02775290965d59ffba03da574925e387" args="(ChartType type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__charts.html#ga8d63464f873580c77508e1c0c26cbfea">ChartType</a>&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the chart type. </p>
<p>The chart type determines how (x,y) data are interpreted. In a <a class="el" href="group__charts.html#gga8d63464f873580c77508e1c0c26cbfeaaebfd9bd11d1126f2db7ff891c04c29f9">CategoryChart</a>, the X values are categories, and these are plotted consecutively, evenly spaced, and in row order. In a <a class="el" href="group__charts.html#gga8d63464f873580c77508e1c0c26cbfeaa6ddab43d32242eb28831938a1e469a1f">ScatterPlot</a>, the X values are interpreted numerically (as for Y values).</p>
<p>The default chart type is a <a class="el" href="group__charts.html#gga8d63464f873580c77508e1c0c26cbfeaaebfd9bd11d1126f2db7ff891c04c29f9">CategoryChart</a>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a8885469f81160cac5c1ed51fc1166265" title="Returns the chart type.">type()</a> </dd>
<dd>
<a class="el" href="classWt_1_1Chart_1_1WAxis.html#ab067037b83d1d663535250968a1776d8" title="Sets the scale of the axis.">WAxis::setScale()</a>, <a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#af966d6ee6b2e43e6b26e794459005375" title="Returns a chart axis.">axis(Axis)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6c954fa4ed6d73f00ee973bfe3af5ed0"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::setXSeriesColumn" ref="a6c954fa4ed6d73f00ee973bfe3af5ed0" args="(int modelColumn)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::Chart::WCartesianChart::setXSeriesColumn </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>modelColumn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the the model column for the X series. </p>
<p>Use this method to specify the data for the X series. For a <a class="el" href="group__charts.html#gga8d63464f873580c77508e1c0c26cbfeaa6ddab43d32242eb28831938a1e469a1f">ScatterPlot</a> this is mandatory, while for a <a class="el" href="group__charts.html#gga8d63464f873580c77508e1c0c26cbfeaaebfd9bd11d1126f2db7ff891c04c29f9">CategoryChart</a>, if not specified, an increasing series of integer numbers will be used (1, 2, ...).</p>
<p>Scatterplot dataseries may each individually be given its own X series data using <a class="el" href="classWt_1_1Chart_1_1WDataSeries.html#a9361e12e94699f59090ae8ac3a4921df" title="Sets the X series column.">WDataSeries::setXSeriesColumn(int modelColumn)</a></p>
<p>The default value is -1 (not specified).</p>
<p>The series column is reset to -1 when the model is set (or changed). Thus you need to set a model before configuring the series.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a378a1ece6bf9acfb291cc6978c473acb" title="Returns the model column for the X series.">XSeriesColumn()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a8885469f81160cac5c1ed51fc1166265"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::type" ref="a8885469f81160cac5c1ed51fc1166265" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__charts.html#ga8d63464f873580c77508e1c0c26cbfea">ChartType</a> Wt::Chart::WCartesianChart::type </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the chart type. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a02775290965d59ffba03da574925e387" title="Sets the chart type.">setType()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a378a1ece6bf9acfb291cc6978c473acb"></a><!-- doxytag: member="Wt::Chart::WCartesianChart::XSeriesColumn" ref="a378a1ece6bf9acfb291cc6978c473acb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::Chart::WCartesianChart::XSeriesColumn </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the model column for the X series. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1Chart_1_1WCartesianChart.html#a6c954fa4ed6d73f00ee973bfe3af5ed0" title="Sets the the model column for the X series.">setXSeriesColumn()</a> </dd></dl>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>