QuadrantChart Class
A quadrant chart: points placed on two axes that go from 0 to 1, over a square split into four quadrants, as for a priority or a risk matrix (Mermaid quadrantChart). The quadrants are numbered as in mathematics: 1 is the top right one, 2 the top left one, 3 the bottom left one and 4 the bottom right one.
public sealed class QuadrantChart : MermaidChartRemarks
MermaidChart.ToPlot draws the chart on x and y scales that go from 0 to 1, with hidden axes and a fixed margin for the title and the texts of the axes. The bold and italic parts of a markdown text are written back but drawn as plain text.
- Inheritance
MermaidChartQuadrantChart
Constructors
| Name | Description |
|---|---|
| QuadrantChart() |
QuadrantChart()
QuadrantChart.cspublic QuadrantChart()No documentation is available.
Properties
| Name | Description |
|---|---|
| ClassDefinitions | Gets the styles that the points share by their QuadrantChartPoint.ClassName (Mermaid classDef). |
| Colors | Gets the colors that replace the ones of the theme (the quadrant* theme variables of Mermaid). |
| ExternalBorderWidth | Gets or sets the width of the border around the quadrants. The default is 2. |
| Height | Gets or sets the height of the chart, the axis labels included, in pixels. The title is drawn above it. The default is 500. |
| InternalBorderWidth | Gets or sets the width of the lines between the quadrants. The default is 1. |
| PointLabelFontSize | Gets or sets the size of the texts of the points. The default is 12. |
| PointRadius | Gets or sets the radius of the points that have none in their style. The default is 5. |
| PointTextPadding | Gets or sets the space between a point and its text, in pixels. The default is 5. |
| Points | Gets the points. The first ones are drawn above the next ones, as in Mermaid. |
| Quadrant1Label | Gets or sets the text of the top right quadrant (Mermaid quadrant-1), or null for none. |
| Quadrant2Label | Gets or sets the text of the top left quadrant (Mermaid quadrant-2), or null for none. |
| Quadrant3Label | Gets or sets the text of the bottom left quadrant (Mermaid quadrant-3), or null for none. |
| Quadrant4Label | Gets or sets the text of the bottom right quadrant (Mermaid quadrant-4), or null for none. |
| QuadrantLabelFontSize | Gets or sets the size of the texts of the quadrants. The default is 16. |
| QuadrantPadding | Gets or sets the space around the quadrants, in pixels. The default is 5. |
| QuadrantTextTopPadding | Gets or sets the space between the top of a quadrant and its text when the chart has points, in pixels. The default is 5. |
| Width | Gets or sets the width of the chart, the axis labels included, in pixels. The default is 500. |
| XAxisLabelFontSize | Gets or sets the size of the texts of the x axis. The default is 16. |
| XAxisLabelPadding | Gets or sets the space above and below the texts of the x axis, in pixels. The default is 5. |
| XAxisLeftLabel | Gets or sets the text on the left of the x axis, or null for none. |
| XAxisPosition | Gets or sets where the texts of the x axis are drawn. The default is QuadrantChartXAxisPosition.Top. As in Mermaid, they are always drawn at the bottom when the chart has points. |
| XAxisRightLabel | Gets or sets the text on the right of the x axis, or null for none. Mermaid needs QuadrantChart.XAxisLeftLabel with it. |
| YAxisBottomLabel | Gets or sets the text at the bottom of the y axis, or null for none. |
| YAxisLabelFontSize | Gets or sets the size of the texts of the y axis. The default is 16. |
| YAxisLabelPadding | Gets or sets the space on both sides of the texts of the y axis, in pixels. The default is 5. |
| YAxisPosition | Gets or sets where the texts of the y axis are drawn. The default is QuadrantChartYAxisPosition.Left. |
| YAxisTopLabel | Gets or sets the text at the top of the y axis, or null for none. Mermaid needs QuadrantChart.YAxisBottomLabel with it. |
ClassDefinitions
QuadrantChart.csGets the styles that the points share by their QuadrantChartPoint.ClassName (Mermaid classDef).
public IDictionary<string, QuadrantChartPointStyle> ClassDefinitions { get; }Property value
Colors
QuadrantChart.csGets the colors that replace the ones of the theme (the quadrant* theme variables of Mermaid).
public QuadrantChartColors Colors { get; }Property value
ExternalBorderWidth
QuadrantChart.csGets or sets the width of the border around the quadrants. The default is 2.
public double ExternalBorderWidth { get; set; }Height
QuadrantChart.csGets or sets the height of the chart, the axis labels included, in pixels. The title is drawn above it. The default is 500.
public double Height { get; set; }InternalBorderWidth
QuadrantChart.csGets or sets the width of the lines between the quadrants. The default is 1.
public double InternalBorderWidth { get; set; }PointLabelFontSize
QuadrantChart.csGets or sets the size of the texts of the points. The default is 12.
public double PointLabelFontSize { get; set; }PointRadius
QuadrantChart.csGets or sets the radius of the points that have none in their style. The default is 5.
public double PointRadius { get; set; }PointTextPadding
QuadrantChart.csGets or sets the space between a point and its text, in pixels. The default is 5.
public double PointTextPadding { get; set; }Points
QuadrantChart.csGets the points. The first ones are drawn above the next ones, as in Mermaid.
public IList<QuadrantChartPoint> Points { get; }Property value
Quadrant1Label
QuadrantChart.csGets or sets the text of the top right quadrant (Mermaid quadrant-1), or null for none.
public DiagramText? Quadrant1Label { get; set; }Property value
Quadrant2Label
QuadrantChart.csGets or sets the text of the top left quadrant (Mermaid quadrant-2), or null for none.
public DiagramText? Quadrant2Label { get; set; }Property value
Quadrant3Label
QuadrantChart.csGets or sets the text of the bottom left quadrant (Mermaid quadrant-3), or null for none.
public DiagramText? Quadrant3Label { get; set; }Property value
Quadrant4Label
QuadrantChart.csGets or sets the text of the bottom right quadrant (Mermaid quadrant-4), or null for none.
public DiagramText? Quadrant4Label { get; set; }Property value
QuadrantLabelFontSize
QuadrantChart.csGets or sets the size of the texts of the quadrants. The default is 16.
public double QuadrantLabelFontSize { get; set; }QuadrantPadding
QuadrantChart.csGets or sets the space around the quadrants, in pixels. The default is 5.
public double QuadrantPadding { get; set; }QuadrantTextTopPadding
QuadrantChart.csGets or sets the space between the top of a quadrant and its text when the chart has points, in pixels. The default is 5.
public double QuadrantTextTopPadding { get; set; }Width
QuadrantChart.csGets or sets the width of the chart, the axis labels included, in pixels. The default is 500.
public double Width { get; set; }XAxisLabelFontSize
QuadrantChart.csGets or sets the size of the texts of the x axis. The default is 16.
public double XAxisLabelFontSize { get; set; }XAxisLabelPadding
QuadrantChart.csGets or sets the space above and below the texts of the x axis, in pixels. The default is 5.
public double XAxisLabelPadding { get; set; }XAxisLeftLabel
QuadrantChart.csGets or sets the text on the left of the x axis, or null for none.
public DiagramText? XAxisLeftLabel { get; set; }Property value
XAxisPosition
QuadrantChart.csGets or sets where the texts of the x axis are drawn. The default is QuadrantChartXAxisPosition.Top. As in Mermaid, they are always drawn at the bottom when the chart has points.
public QuadrantChartXAxisPosition XAxisPosition { get; set; }Property value
XAxisRightLabel
QuadrantChart.csGets or sets the text on the right of the x axis, or null for none. Mermaid needs QuadrantChart.XAxisLeftLabel with it.
public DiagramText? XAxisRightLabel { get; set; }Property value
YAxisBottomLabel
QuadrantChart.csGets or sets the text at the bottom of the y axis, or null for none.
public DiagramText? YAxisBottomLabel { get; set; }Property value
YAxisLabelFontSize
QuadrantChart.csGets or sets the size of the texts of the y axis. The default is 16.
public double YAxisLabelFontSize { get; set; }YAxisLabelPadding
QuadrantChart.csGets or sets the space on both sides of the texts of the y axis, in pixels. The default is 5.
public double YAxisLabelPadding { get; set; }YAxisPosition
QuadrantChart.csGets or sets where the texts of the y axis are drawn. The default is QuadrantChartYAxisPosition.Left.
public QuadrantChartYAxisPosition YAxisPosition { get; set; }Property value
YAxisTopLabel
QuadrantChart.csGets or sets the text at the top of the y axis, or null for none. Mermaid needs QuadrantChart.YAxisBottomLabel with it.
public DiagramText? YAxisTopLabel { get; set; }Property value
Methods
| Name | Description |
|---|---|
| AddPoint(DiagramText, double, double) | Adds a point. |
AddPoint(DiagramText, double, double)
QuadrantChart.csAdds a point.
public QuadrantChartPoint AddPoint(DiagramText label, double x, double y)Parameters
labelDiagramText- The text drawn below the point.
xdouble- The position on the x axis, from 0 (left) to 1 (right).
ydouble- The position on the y axis, from 0 (bottom) to 1 (top).
Returns
QuadrantChartPoint The point.