ScottPlot
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
ScottPlot.Plottables.Pie Class Reference
Inheritance diagram for ScottPlot.Plottables.Pie:
ScottPlot.Plottables.PieBase ScottPlot.IPlottable ScottPlot.IManagesAxisLimits ScottPlot.IHasLine

Public Member Functions

 Pie (IList< PieSlice > slices)
 
override AxisLimits GetAxisLimits ()
 Return the 2D area (in coordinate space) occupied by the data contained in this plottable.
 
override void Render (RenderPack rp)
 Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.
 
- Public Member Functions inherited from ScottPlot.Plottables.PieBase
virtual void UpdateAxisLimits (Plot plot)
 
AxisLimits GetAxisLimits ()
 Return the 2D area (in coordinate space) occupied by the data contained in this plottable.
 
void Render (RenderPack rp)
 Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.
 

Properties

double ExplodeFraction = 0 [get, set]
 
double DonutFraction = 0 [get, set]
 
- Properties inherited from ScottPlot.Plottables.PieBase
IAxes Axes = new Axes() [get, set]
 This object performs coordinate/pixel translation at render time based on the latest data area. It stores the axes to use for this plottable and also the data area (in pixels) updated just before each render. If this object is null it will be constructed using the default X and Y axes at render time.
 
bool IsVisible = true [get, set]
 Toggles whether this plottable is shown and contributes to the automatic axis limit detection. The calling method will check this variable (it does not need to be checked inside the Render method).
 
Angle Rotation = Angle.FromDegrees(-90) [get, set]
 
IEnumerable< LegendItemLegendItems [get]
 Items which will appear in the legend.
 
Color LineColor [get, set]
 
LinePattern LinePattern [get, set]
 
LineStyle LineStyle = new() { Width = 1 } [get, set]
 
float LineWidth [get, set]
 
double Padding = 0.2 [get, set]
 
double SliceLabelDistance = 1.2 [get, set]
 
IList< PieSliceSlices = [] [get, set]
 
bool ManageAxisLimits = true [get, set]
 Enable this to modify the axis limits at render time to achieve "square axes" where the units/px values are equal for horizontal and vertical axes, allowing circles to always appear as circles instead of ellipses.
 
- Properties inherited from ScottPlot.IPlottable
- Properties inherited from ScottPlot.IManagesAxisLimits
- Properties inherited from ScottPlot.IHasLine

Constructor & Destructor Documentation

◆ Pie()

ScottPlot.Plottables.Pie.Pie ( IList< PieSlice slices)
inline

Member Function Documentation

◆ GetAxisLimits()

override AxisLimits ScottPlot.Plottables.Pie.GetAxisLimits ( )
inline

Return the 2D area (in coordinate space) occupied by the data contained in this plottable.

Implements ScottPlot.IPlottable.

◆ Render()

override void ScottPlot.Plottables.Pie.Render ( RenderPack  rp)
inline

Draw the data from this plottable into the data area defined in the Axes. By default the surface is already clipped to the data area, but this can be cleared inside the plottable.

Implements ScottPlot.IPlottable.

Property Documentation

◆ DonutFraction

double ScottPlot.Plottables.Pie.DonutFraction = 0
getset

◆ ExplodeFraction

double ScottPlot.Plottables.Pie.ExplodeFraction = 0
getset

The documentation for this class was generated from the following file: