AxisMarksBlockBuilder
public class AxisMarksBlockBuilderBuilds the grid-line, tick, and value-label content emitted for one axis-marks block.
Constructors
Section titled “Constructors”
AxisMarksBlockBuilder(AxisMarkConfig)
Section titled “AxisMarksBlockBuilder(AxisMarkConfig)”public AxisMarksBlockBuilder(AxisMarkConfig block)Creates an Axis Marks Block Builder backed by the supplied block; fluent changes are accumulated until the configuration is built.
Parameters
| Name | Type |
|---|---|
block |
ChartGuru.AxisMarkConfig |
Methods
Section titled “Methods”
ShowLabels(bool)
Section titled “ShowLabels(bool)”public AxisMarksBlockBuilder ShowLabels(bool show)Controls whether formatted tick labels are rendered for this axis.
Parameters
| Name | Type |
|---|---|
show |
System.Boolean |
Returns
ChartGuru.AxisMarksBlockBuilder
ShowGridLines(bool)
Section titled “ShowGridLines(bool)”public AxisMarksBlockBuilder ShowGridLines(bool show)Controls whether grid lines extend from this axis across the plot area.
Parameters
| Name | Type |
|---|---|
show |
System.Boolean |
Returns
ChartGuru.AxisMarksBlockBuilder
ShowTicks(bool)
Section titled “ShowTicks(bool)”public AxisMarksBlockBuilder ShowTicks(bool show)Controls whether tick marks are drawn without changing tick labels.
Parameters
| Name | Type |
|---|---|
show |
System.Boolean |
Returns
ChartGuru.AxisMarksBlockBuilder
Preset(AxisMarkPreset)
Section titled “Preset(AxisMarkPreset)”public AxisMarksBlockBuilder Preset(AxisMarkPreset preset)Applies the mark-placement preset used to generate this axis block’s ticks, labels, and grid lines.
Parameters
| Name | Type |
|---|---|
preset |
ChartGuru.AxisMarkPreset |
Returns
ChartGuru.AxisMarksBlockBuilder
Position(AxisMarkPosition)
Section titled “Position(AxisMarkPosition)”public AxisMarksBlockBuilder Position(AxisMarkPosition position)Binds projected values to a chart axis and dimension, controlling where each generated mark is laid out.
Parameters
| Name | Type |
|---|---|
position |
ChartGuru.AxisMarkPosition |
Returns
ChartGuru.AxisMarksBlockBuilder
LabelAnchor(AxisLabelAnchor)
Section titled “LabelAnchor(AxisLabelAnchor)”public AxisMarksBlockBuilder LabelAnchor(AxisLabelAnchor anchor)Positions value labels relative to their tick marks and the axis edge.
Parameters
| Name | Type |
|---|---|
anchor |
ChartGuru.AxisLabelAnchor |
Returns
ChartGuru.AxisMarksBlockBuilder
TickLength(float)
Section titled “TickLength(float)”public AxisMarksBlockBuilder TickLength(float length)Sets the tick length in pixels or supplies a semantic automatic, label-relative, or explicit length.
Parameters
| Name | Type |
|---|---|
length |
System.Single |
Returns
ChartGuru.AxisMarksBlockBuilder
TickWidth(float)
Section titled “TickWidth(float)”public AxisMarksBlockBuilder TickWidth(float width)Sets the rendered tick-stroke width in pixels.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
Returns
ChartGuru.AxisMarksBlockBuilder
GridLineWidth(float)
Section titled “GridLineWidth(float)”public AxisMarksBlockBuilder GridLineWidth(float width)Sets the rendered grid-line stroke width in pixels.
Parameters
| Name | Type |
|---|---|
width |
System.Single |
Returns
ChartGuru.AxisMarksBlockBuilder
HideLabelAt(int)
Section titled “HideLabelAt(int)”public AxisMarksBlockBuilder HideLabelAt(int index)Suppresses the value label at the specified generated tick index while retaining its tick and grid line.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
Returns
ChartGuru.AxisMarksBlockBuilder
LabelOverride(int, string)
Section titled “LabelOverride(int, string)”public AxisMarksBlockBuilder LabelOverride(int index, string text)Replaces the formatted label at a generated tick index with caller-provided text.
Parameters
| Name | Type |
|---|---|
index |
System.Int32 |
text |
System.String |
Returns
ChartGuru.AxisMarksBlockBuilder
CenteredLabels(bool)
Section titled “CenteredLabels(bool)”public AxisMarksBlockBuilder CenteredLabels(bool centered)Controls whether categorical labels are centered between adjacent tick boundaries.
Parameters
| Name | Type |
|---|---|
centered |
System.Boolean |
Returns
ChartGuru.AxisMarksBlockBuilder