ChartAxisDefaultsSettingsTagHelper

Example

Razor
<axis-defaults>
    <chart-axis-defaults-title></chart-axis-defaults-title>
    <crosshair></crosshair>
    <labels></labels>
    <line />
    <major-grid-lines />
    <major-ticks />
    <minor-grid-lines />
    <minor-ticks />
    <plot-bands></plot-bands>
</axis-defaults>

ChildTags

Attributes

AttributeTypeDescription
backgroundStringThe background color of the axis.
colorStringThe color to apply to all axis elements. Accepts a valid CSS color string, including hex and rgb.
narrow-rangeBooleanIf set to true the chart will prevent the axis range from snapping to 0. Setting it to false will force the axis range to snap to 0.
paneStringThe name of the pane that the axis should be rendered in. The axis will be rendered in the first (default) pane if not set.
reverseBooleanIf set to true the axis direction will be reversed. By default categories are listed from left to right and from bottom to top.
start-angleDoubleThe angle (degrees) of the first category on the axis.Angles increase clockwise and zero is to the left. Negative values are acceptable.
visibleBooleanIf set to true the chart will display the axis. By default the axis is visible.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support