Files
Terminal.Gui/docs/api/Terminal.Gui/Terminal.Gui.Graphs.MultiBarSeries.html

341 lines
14 KiB
HTML

<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class MultiBarSeries
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class MultiBarSeries
">
<meta name="generator" content="docfx 2.59.0.0">
<link rel="shortcut icon" href="../../favicon.ico">
<link rel="stylesheet" href="../../styles/docfx.vendor.css">
<link rel="stylesheet" href="../../styles/docfx.css">
<link rel="stylesheet" href="../../styles/main.css">
<meta property="docfx:navrel" content="../../toc.html">
<meta property="docfx:tocrel" content="toc.html">
<meta property="docfx:rel" content="../../">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../../index.html">
<img id="logo" class="svg" src="../../images/logo48.png" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
</header>
<div class="container body-content">
<div id="search-results">
<div class="search-list">Search Results for <span></span></div>
<div class="sr-items">
<p><i class="glyphicon glyphicon-refresh index-loading"></i></p>
</div>
<ul id="pagination" data-first="First" data-prev="Previous" data-next="Next" data-last="Last"></ul>
</div>
</div>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Terminal.Gui.Graphs.MultiBarSeries">
<h1 id="Terminal_Gui_Graphs_MultiBarSeries" data-uid="Terminal.Gui.Graphs.MultiBarSeries" class="text-break">Class MultiBarSeries
</h1>
<div class="markdown level0 summary">
Collection of <a class="xref" href="Terminal.Gui.Graphs.BarSeries.html">BarSeries</a> in which bars are clustered by category
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">MultiBarSeries</span></div>
</div>
<div classs="implements">
<h5>Implements</h5>
<div><a class="xref" href="Terminal.Gui.Graphs.ISeries.html">ISeries</a></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.ToString()</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="Terminal.Gui.Graphs.html">Terminal.Gui.Graphs</a></h6>
<h6><strong>Assembly</strong>: Terminal.Gui.dll</h6>
<h5 id="Terminal_Gui_Graphs_MultiBarSeries_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class MultiBarSeries : ISeries</code></pre>
</div>
<h3 id="constructors">Constructors
</h3>
<a id="Terminal_Gui_Graphs_MultiBarSeries__ctor_" data-uid="Terminal.Gui.Graphs.MultiBarSeries.#ctor*"></a>
<h4 id="Terminal_Gui_Graphs_MultiBarSeries__ctor_System_Int32_System_Single_System_Single_Terminal_Gui_Attribute___" data-uid="Terminal.Gui.Graphs.MultiBarSeries.#ctor(System.Int32,System.Single,System.Single,Terminal.Gui.Attribute[])">MultiBarSeries(Int32, Single, Single, Attribute[])</h4>
<div class="markdown level1 summary">
Creates a new series of clustered bars.
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public MultiBarSeries(int numberOfBarsPerCategory, float barsEvery, float spacing, Attribute[] colors = null)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Int32</span></td>
<td><span class="parametername">numberOfBarsPerCategory</span></td>
<td>Each category has this many bars</td>
</tr>
<tr>
<td><span class="xref">System.Single</span></td>
<td><span class="parametername">barsEvery</span></td>
<td>How far appart to put each category (in graph space)</td>
</tr>
<tr>
<td><span class="xref">System.Single</span></td>
<td><span class="parametername">spacing</span></td>
<td>How much spacing between bars in a category (should be less than <code data-dev-comment-type="paramref" class="paramref">barsEvery</code>/<code data-dev-comment-type="paramref" class="paramref">numberOfBarsPerCategory</code>)</td>
</tr>
<tr>
<td><a class="xref" href="Terminal.Gui.Attribute.html">Attribute</a>[]</td>
<td><span class="parametername">colors</span></td>
<td>Array of colors that define bar color in each category. Length must match <code data-dev-comment-type="paramref" class="paramref">numberOfBarsPerCategory</code></td>
</tr>
</tbody>
</table>
<h3 id="properties">Properties
</h3>
<a id="Terminal_Gui_Graphs_MultiBarSeries_Spacing_" data-uid="Terminal.Gui.Graphs.MultiBarSeries.Spacing*"></a>
<h4 id="Terminal_Gui_Graphs_MultiBarSeries_Spacing" data-uid="Terminal.Gui.Graphs.MultiBarSeries.Spacing">Spacing</h4>
<div class="markdown level1 summary">
The number of units of graph space between bars. Should be
less than <a class="xref" href="Terminal.Gui.Graphs.BarSeries.html#Terminal_Gui_Graphs_BarSeries_BarEvery">BarEvery</a>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public float Spacing { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Single</span></td>
<td></td>
</tr>
</tbody>
</table>
<a id="Terminal_Gui_Graphs_MultiBarSeries_SubSeries_" data-uid="Terminal.Gui.Graphs.MultiBarSeries.SubSeries*"></a>
<h4 id="Terminal_Gui_Graphs_MultiBarSeries_SubSeries" data-uid="Terminal.Gui.Graphs.MultiBarSeries.SubSeries">SubSeries</h4>
<div class="markdown level1 summary">
Sub collections. Each series contains the bars for a different category. Thus
SubSeries[0].Bars[0] is the first bar on the axis and SubSeries[1].Bars[0] is the
second etc
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IReadOnlyCollection&lt;BarSeries&gt; SubSeries { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.Collections.Generic.IReadOnlyCollection</span>&lt;<a class="xref" href="Terminal.Gui.Graphs.BarSeries.html">BarSeries</a>&gt;</td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="methods">Methods
</h3>
<a id="Terminal_Gui_Graphs_MultiBarSeries_AddBars_" data-uid="Terminal.Gui.Graphs.MultiBarSeries.AddBars*"></a>
<h4 id="Terminal_Gui_Graphs_MultiBarSeries_AddBars_System_String_System_Rune_System_Single___" data-uid="Terminal.Gui.Graphs.MultiBarSeries.AddBars(System.String,System.Rune,System.Single[])">AddBars(String, Rune, Single[])</h4>
<div class="markdown level1 summary">
Adds a new cluster of bars
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void AddBars(string label, Rune fill, params float[] values)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">label</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Rune</span></td>
<td><span class="parametername">fill</span></td>
<td></td>
</tr>
<tr>
<td><span class="xref">System.Single</span>[]</td>
<td><span class="parametername">values</span></td>
<td>Values for each bar in category, must match the number of bars per category</td>
</tr>
</tbody>
</table>
<a id="Terminal_Gui_Graphs_MultiBarSeries_DrawSeries_" data-uid="Terminal.Gui.Graphs.MultiBarSeries.DrawSeries*"></a>
<h4 id="Terminal_Gui_Graphs_MultiBarSeries_DrawSeries_Terminal_Gui_GraphView_Terminal_Gui_Rect_Terminal_Gui_RectangleF_" data-uid="Terminal.Gui.Graphs.MultiBarSeries.DrawSeries(Terminal.Gui.GraphView,Terminal.Gui.Rect,Terminal.Gui.RectangleF)">DrawSeries(GraphView, Rect, RectangleF)</h4>
<div class="markdown level1 summary">
Draws all <a class="xref" href="Terminal.Gui.Graphs.MultiBarSeries.html#Terminal_Gui_Graphs_MultiBarSeries_SubSeries">SubSeries</a>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void DrawSeries(GraphView graph, Rect drawBounds, RectangleF graphBounds)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="xref" href="Terminal.Gui.GraphView.html">GraphView</a></td>
<td><span class="parametername">graph</span></td>
<td></td>
</tr>
<tr>
<td><a class="xref" href="Terminal.Gui.Rect.html">Rect</a></td>
<td><span class="parametername">drawBounds</span></td>
<td></td>
</tr>
<tr>
<td><a class="xref" href="Terminal.Gui.RectangleF.html">RectangleF</a></td>
<td><span class="parametername">graphBounds</span></td>
<td></td>
</tr>
</tbody>
</table>
<h3 id="implements">Implements</h3>
<div>
<a class="xref" href="Terminal.Gui.Graphs.ISeries.html">ISeries</a>
</div>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<h5>In This Article</h5>
<div></div>
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
<span>Generated by <strong>DocFX</strong></span>
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
<script type="text/javascript" src="../../styles/docfx.js"></script>
<script type="text/javascript" src="../../styles/main.js"></script>
</body>
</html>