|
VectSharp 2.6.1
A light library for C# vector graphics
|
A plot element that draws bars. More...

Public Member Functions | |||
| Bars (IEnumerable< T > data, IComparer< T > sorting, Func< T, T > getBaseline, ICoordinateSystem< T > coordinateSystem) | |||
| Create a new Bars<T> instance. More... | |||
| Bars (IEnumerable< T > data, Comparison< T > sorting, Func< T, T > getBaseline, ICoordinateSystem< T > coordinateSystem) | |||
| Create a new Bars<T> instance. More... | |||
| Bars (IReadOnlyList< T > data, Func< T, T > getBaseline, ICoordinateSystem< T > coordinateSystem) | |||
| Create a new Bars<T> instance. More... | |||
| void | Plot (Graphics target) | ||
Draw the plot element on the specified target  Graphics.
| |||
| Bars (IEnumerable< IReadOnlyList< double > > data, IComparer< IReadOnlyList< double > > sorting, Func< IReadOnlyList< double >, IReadOnlyList< double > > getBaseline, ICoordinateSystem< IReadOnlyList< double > > coordinateSystem) | |||
| Create a new Bars instance. More... | |||
| Bars (IEnumerable< IReadOnlyList< double > > data, Comparison< IReadOnlyList< double > > sorting, Func< IReadOnlyList< double >, IReadOnlyList< double > > getBaseline, ICoordinateSystem< IReadOnlyList< double > > coordinateSystem) | |||
| Create a new Bars instance. More... | |||
| Bars (IEnumerable< IReadOnlyList< double > > data, ICoordinateSystem< IReadOnlyList< double > > coordinateSystem, bool vertical=true) | |||
| Create a new Bars instance. More... | |||
| void | Plot (Graphics target) | ||
| Draw the plot element on the specified target  Graphics. More... | |||
Properties | |
| SortedSet< T > | Data [get, set] |
| The data points corresponding to the tips of the bars. More... | |
| Func< T, T > | GetBaseline [get, set] |
| A function that returns the bottom for each bar. This function should accept a single parameter of type T and return another T object, representing the bottom of the bar in data space. More... | |
| double | Margin [get, set] |
| The margin between consecutive bars. This should range between 0 and 1. More... | |
| ICoordinateSystem< T > | CoordinateSystem [get, set] |
| The coordinate system used to transform the points from data space to plot space. More... | |
| PlotElementPresentationAttributes | PresentationAttributes = new PlotElementPresentationAttributes() [get, set] |
| Presentation attributes for the bars. More... | |
| string | Tag [get, set] |
| A tag to identify the bars in the plot. More... | |
Properties inherited from VectSharp.Plots.IPlotElement | |
| ICoordinateSystem | CoordinateSystem [get] |
| The coordinate system used to transform the points from data space to plot space. More... | |
A plot element that draws bars.
A plot element that draws bars for numerical data.
| T | The type of data elements. |
| VectSharp.Plots.Bars< T >.Bars | ( | IEnumerable< T > | data, |
| IComparer< T > | sorting, | ||
| Func< T, T > | getBaseline, | ||
| ICoordinateSystem< T > | coordinateSystem | ||
| ) |
Create a new Bars<T> instance.
| data | The data points corresponding to the tips of the bars. |
| sorting | A comparer used to sort the bars. |
| getBaseline | A function that returns the bottom for each bar. This function should accept a single parameter of type T and return another T object, representing the bottom of the bar in data space. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |
| VectSharp.Plots.Bars< T >.Bars | ( | IEnumerable< T > | data, |
| Comparison< T > | sorting, | ||
| Func< T, T > | getBaseline, | ||
| ICoordinateSystem< T > | coordinateSystem | ||
| ) |
Create a new Bars<T> instance.
| data | The data points corresponding to the tips of the bars. |
| sorting | A comparer used to sort the bars. |
| getBaseline | A function that returns the bottom for each bar. This function should accept a single parameter of type T and return another T object, representing the bottom of the bar in data space. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |
| VectSharp.Plots.Bars< T >.Bars | ( | IReadOnlyList< T > | data, |
| Func< T, T > | getBaseline, | ||
| ICoordinateSystem< T > | coordinateSystem | ||
| ) |
Create a new Bars<T> instance.
| data | The data points corresponding to the tips of the bars. These should already be sorted. |
| getBaseline | A function that returns the bottom for each bar. This function should accept a single parameter of type T and return another T object, representing the bottom of the bar in data space. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |
| VectSharp.Plots.Bars< T >.Bars | ( | IEnumerable< IReadOnlyList< double > > | data, |
| IComparer< IReadOnlyList< double > > | sorting, | ||
| Func< IReadOnlyList< double >, IReadOnlyList< double > > | getBaseline, | ||
| ICoordinateSystem< IReadOnlyList< double > > | coordinateSystem | ||
| ) |
Create a new Bars instance.
| data | The data points corresponding to the tips of the bars. |
| sorting | A comparer used to sort the bars. |
| getBaseline | A function that returns the bottom for each bar. This function should accept a single parameter (an IReadOnlyList<T> of doubles), and return another object of the same type, representing the bottom of the bar in data space. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |
| VectSharp.Plots.Bars< T >.Bars | ( | IEnumerable< IReadOnlyList< double > > | data, |
| Comparison< IReadOnlyList< double > > | sorting, | ||
| Func< IReadOnlyList< double >, IReadOnlyList< double > > | getBaseline, | ||
| ICoordinateSystem< IReadOnlyList< double > > | coordinateSystem | ||
| ) |
Create a new Bars instance.
| data | The data points corresponding to the tips of the bars. |
| sorting | A comparer used to sort the bars. |
| getBaseline | A function that returns the bottom for each bar. This function should accept a single parameter (an IReadOnlyList<T> of doubles), and return another object of the same type, representing the bottom of the bar in data space. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |
| VectSharp.Plots.Bars< T >.Bars | ( | IEnumerable< IReadOnlyList< double > > | data, |
| ICoordinateSystem< IReadOnlyList< double > > | coordinateSystem, | ||
| bool | vertical = true |
||
| ) |
Create a new Bars instance.
| data | The data points corresponding to the tips of the bars. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |
| vertical | If this is true (the default), the bars rise vertically above the X axis Otherwise, the bars grow horizontally from the Y axis. |
| void VectSharp.Plots.Bars< T >.Plot | ( | Graphics | target | ) |
Draw the plot element on the specified target  Graphics.
| target | The Graphics on which to draw. |
Implements VectSharp.Plots.IPlotElement.
|
getset |
The coordinate system used to transform the points from data space to plot space.
Implements VectSharp.Plots.IPlotElement.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |