scidart_plot library

Classes

Arc
Class to generate SVG arcs
Circle
Class to generate SVG circles
Color
SVG color enum and helper class. Make pattern and conversion easy.
Ellipse
Class to generate SVG ellipses
FontSize
SVG font enum/helper class. Make the conversions easy.
Group
Class to generate SVG groups
Legend
Base class to generate plot legends groups
LegendItem
Base class to generate plot legends items
Line
Class to generate SVG lines
PlotGeneral
Base class to generate plot curves
PlotPie
Base class to generate pie plot curves
PointPair
Primitive type for SVG tags that use point as coordinates: Polygon, Polyline, etc
Polygon
Class to generate SVG polygons
Polyline
Class to generate SVG polylines
Rect
Class to generate SVG rectangles
StrokeDasharray
SVG stroke dash array enum and helper class. Make pattern and conversion easy.
StrokeWidth
SVG stroke width enum and helper class. Make pattern and conversion easy.
SvgCanvas
Main class that handle and generate SVG widgets, can be interpreted like a canvas
SvgWidget
Root class that have all the basic SVG attributes
Text
Class to generate SVG rectangles

Enums

AlignmentY
svg element alignment enum
LegendPosition
Plot legend positions enum
PlotGeneralType
Plot enum types
TextAnchor
SVG TextAnchor enum.
Unit
SVG length Unit enum.
Visibility
SVG visibilty enum.

Extensions

AlignmentYExt on AlignmentY
extension to make conversions easy
TextAnchorExt on TextAnchor
SVG TextAnchor extension, make pattern and conversion easy.
UnitExt on Unit
SVG length Unit extension, make the conversion easy.
VisibilityExt on Visibility
SVG visibility extension, make the conversion easy.

Functions

calcXPoint(double xStart, int i, double distDeltaX) double
Calculate some X point in pixel from x start point xStart, index i and delta X distance distDeltaX
calcYPoint(double yEnd, int i, double distDeltaY) double
Calculate some Y point in pixel from y end point yEnd, index i and delta Y distance distDeltaY
canvasGeneral({required Array ax, required List<PlotGeneral> lines, double width = 414.0, double height = 288.0, bool showGrid = true, Color? backgroundColor, String? title, Legend? legend, Color? gridColor, Color? axisColor, Color? axisTextColor}) SvgCanvas
Main class to create the canvas to draw a General type plot
canvasPie({required Array series, required List<PlotPie> pies, double width = 414.0, double height = 288.0, Color? backgroundColor, String? title, Legend? legend}) SvgCanvas
Base canvas to generate pie plot (also called pizza or donut)
roundPixels(double val, Unit? unit) String
Round pixels values to 1 decimal point max.
roundPixelsOnly(double val) String
Round only pixel number without include the unity.
scaleConversion(double ay, double yStart, double yEnd, double yMin, double yMax) double
Scale/Convert Y points from Array values to Pixels values, this is important to plot in the correct position and keep the values set proportions.