RadarChart Class
A radar chart, also known as a spider chart: axes around a center, and curves that join a value on each axis, to compare several series over several dimensions (Mermaid radar-beta).
public sealed class RadarChart : MermaidChart- Inheritance
MermaidChartRadarChart
Constructors
| Name | Description |
|---|---|
| RadarChart() |
RadarChart()
RadarChart.cspublic RadarChart()No documentation is available.
Properties
| Name | Description |
|---|---|
| Axes | Gets the axes, clockwise from the top. |
| AxisColor | Gets or sets the color of the axes (Mermaid axisColor). The default is the line color of the theme. |
| AxisLabelFactor | Gets or sets the distance of the labels of the axes from the center, as a ratio of the radius (Mermaid axisLabelFactor). The default is 1.05. |
| AxisLabelFontSize | Gets or sets the font size of the labels of the axes (Mermaid axisLabelFontSize). The default is 12. |
| AxisScaleFactor | Gets or sets the length of the axis lines, as a ratio of the radius of the chart (Mermaid axisScaleFactor). The default is 1. |
| AxisStrokeWidth | Gets or sets the width of the axes (Mermaid axisStrokeWidth). The default is 2. |
| CurveOpacity | Gets or sets the opacity of the fill of the curves, from 0 to 1 (Mermaid curveOpacity). The default is 0.5. |
| CurveStrokeWidth | Gets or sets the width of the curves (Mermaid curveStrokeWidth). The default is 2. |
| CurveTension | Gets or sets the tension of the rounded curves, from 0 for straight lines to 1 (Mermaid curveTension). The default is 0.17. The rounded curves are the Catmull-Rom splines of Meziantou.Framework.Charts, which have no tension: the value is written back, but only 0, straight lines, changes the drawing. |
| Curves | Gets the curves. The colors of the theme go to the curves in their order. |
| Graticule | Gets or sets the shape of the scale and of the curves (Mermaid graticule). The default is RadarGraticule.Circle. |
| GraticuleColor | Gets or sets the color of the scale (Mermaid graticuleColor). The default is #dedede. |
| GraticuleOpacity | Gets or sets the opacity of the fill of the scale, from 0 to 1 (Mermaid graticuleOpacity). The default is 0.3. |
| GraticuleStrokeWidth | Gets or sets the width of the lines of the scale (Mermaid graticuleStrokeWidth). The default is 1. |
| Height | Gets or sets the height of the chart, without its margins (Mermaid height). The default is 600. |
| LegendFontSize | Gets or sets the font size of the legend (Mermaid legendFontSize). The default is 12. |
| MarginBottom | Gets or sets the margin below the chart (Mermaid marginBottom). The default is 50. |
| MarginLeft | Gets or sets the margin on the left of the chart (Mermaid marginLeft). The default is 50. |
| MarginRight | Gets or sets the margin on the right of the chart (Mermaid marginRight). The default is 50. |
| MarginTop | Gets or sets the margin above the chart, where the title and the legend are drawn (Mermaid marginTop). The default is 50. |
| Maximum | Gets or sets the value at the end of the axes, or null for the largest value of the curves (Mermaid max). The values above it are drawn at the end of the axes. |
| Minimum | Gets or sets the value at the center (Mermaid min). The default is 0. The values below it are drawn at the center. |
| ShowLegend | Gets or sets a value that indicates whether the legend lists the curves, in the top right corner (Mermaid showLegend). The default is true. |
| Ticks | Gets or sets the number of circles or polygons of the scale, from 0 to 32 (Mermaid ticks). The default is 5. |
| Width | Gets or sets the width of the chart, without its margins (Mermaid width). The default is 600. |
Axes
RadarChart.csGets the axes, clockwise from the top.
Property value
AxisColor
RadarChart.csGets or sets the color of the axes (Mermaid axisColor). The default is the line color of the theme.
public SceneColor? AxisColor { get; set; }Property value
AxisLabelFactor
RadarChart.csAxisLabelFontSize
RadarChart.csAxisScaleFactor
RadarChart.csAxisStrokeWidth
RadarChart.csCurveOpacity
RadarChart.csCurveStrokeWidth
RadarChart.csCurveTension
RadarChart.csGets or sets the tension of the rounded curves, from 0 for straight lines to 1 (Mermaid curveTension). The default is 0.17. The rounded curves are the Catmull-Rom splines of Meziantou.Framework.Charts, which have no tension: the value is written back, but only 0, straight lines, changes the drawing.
public double CurveTension { get; set; }Property value
Curves
RadarChart.csGets the curves. The colors of the theme go to the curves in their order.
public IList<RadarCurve> Curves { get; }Property value
Graticule
RadarChart.csGets or sets the shape of the scale and of the curves (Mermaid graticule). The default is RadarGraticule.Circle.
public RadarGraticule Graticule { get; set; }Property value
GraticuleColor
RadarChart.csGets or sets the color of the scale (Mermaid graticuleColor). The default is #dedede.
public SceneColor? GraticuleColor { get; set; }Property value
GraticuleOpacity
RadarChart.csGraticuleStrokeWidth
RadarChart.csHeight
RadarChart.csLegendFontSize
RadarChart.csMarginBottom
RadarChart.csMarginLeft
RadarChart.csMarginRight
RadarChart.csMarginTop
RadarChart.csMaximum
RadarChart.csMinimum
RadarChart.csShowLegend
RadarChart.csTicks
RadarChart.csWidth
RadarChart.csMethods
| Name | Description |
|---|---|
| AddAxis(string, string?) | Adds an axis after the last one. |
| AddCurve(string, string?, IEnumerable<double>) | Adds a curve after the last one. |
AddAxis(string, string?)
RadarChart.csAddCurve(string, string?, IEnumerable<double>)
RadarChart.csAdds a curve after the last one.
public RadarCurve AddCurve(string name, string? label, params IEnumerable<double> values)Parameters
namestring- The identifier of the curve.
labelstring?- The text of the curve in the legend, or
nullto write the identifier. valuesIEnumerable<double>- The values, in the order of the axes.
Returns
RadarCurve The curve.