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

Public Member Functions | |
| CategoricalBars (IEnumerable<(T, double)> data, IComparer<(T, double)> sorting, Func<(T, double),(T, double)> getBaseline, ICoordinateSystem<(T, double)> coordinateSystem) | |
| Create a new CategoricalBars<T> instance. More... | |
| CategoricalBars (IEnumerable<(T, double)> data, Comparison<(T, double)> sorting, Func<(T, double),(T, double)> getBaseline, ICoordinateSystem<(T, double)> coordinateSystem) | |
| Create a new CategoricalBars<T> instance. More... | |
| CategoricalBars (IEnumerable<(T, double)> data, Comparison<(T, double)> sorting, ICoordinateSystem<(T, double)> coordinateSystem) | |
Create a new Bars<T> instance. The baseline for each (T x, is determined automatically as (x, 0). More... | |
| CategoricalBars (IReadOnlyList<(T, double)> data, ICoordinateSystem<(T, double)> coordinateSystem) | |
Create a new Bars<T> instance. The baseline for each (T x, is determined automatically as (x, 0). More... | |
Public Member Functions inherited from VectSharp.Plots.Bars<(T, double)> | |
| 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... | |
| 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) |
Additional Inherited Members | |
Properties inherited from VectSharp.Plots.Bars<(T, double)> | |
| 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 [get, set] |
| Presentation attributes for the bars. More... | |
| string | Tag [get, set] |
| A tag to identify the bars in the plot. More... | |
A plot element that draws bars for categorical data.
| T | The type of the data categories. |
| VectSharp.Plots.CategoricalBars< T >.CategoricalBars | ( | IEnumerable<(T, double)> | data, |
| IComparer<(T, double)> | sorting, | ||
| Func<(T, double),(T, double)> | getBaseline, | ||
| ICoordinateSystem<(T, double)> | coordinateSystem | ||
| ) |
Create a new CategoricalBars<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.CategoricalBars< T >.CategoricalBars | ( | IEnumerable<(T, double)> | data, |
| Comparison<(T, double)> | sorting, | ||
| Func<(T, double),(T, double)> | getBaseline, | ||
| ICoordinateSystem<(T, double)> | coordinateSystem | ||
| ) |
Create a new CategoricalBars<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.CategoricalBars< T >.CategoricalBars | ( | IEnumerable<(T, double)> | data, |
| Comparison<(T, double)> | sorting, | ||
| ICoordinateSystem<(T, double)> | coordinateSystem | ||
| ) |
Create a new Bars<T> instance. The baseline for each (T x, is determined automatically as double y)(x, 0).
| data | The data points corresponding to the tips of the bars. |
| sorting | A comparer used to sort the bars. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |
| VectSharp.Plots.CategoricalBars< T >.CategoricalBars | ( | IReadOnlyList<(T, double)> | data, |
| ICoordinateSystem<(T, double)> | coordinateSystem | ||
| ) |
Create a new Bars<T> instance. The baseline for each (T x, is determined automatically as double y)(x, 0).
| data | The data points corresponding to the tips of the bars. These should already be sorted. |
| coordinateSystem | The coordinate system used to transform the points from data space to plot space. |