Axis class
Contents
[
Hide
]Axis class
Encapsulates the object that represents a chart’s axis.
The Axis type exposes the following members:
Properties
| Property | Description | 
|---|---|
| chart | Returns the parent chart. Read-only IChart. | 
| axis_between_categories | Represents if the value axis crosses the category axis between categories. This property applies only to category axes, and it doesn’t apply to 3-D charts. Read/write bool. | 
| category_axis_type | Specifies the type of the category axis. Read/write CategoryAxisType. | 
| cross_at | Represents the point on the axis where the perpendicular axis crosses it. Read/write float. | 
| display_unit | Specifies the scaling value of the display units for the value axis. Read/write DisplayUnitType. | 
| actual_max_value | Specifies actual maximum value on the axis. Call method IChart.ValidateChartLayout() previously to get actual value. | 
| actual_min_value | Specifies actual minimum value on the axis. Call method IChart.ValidateChartLayout() previously to get actual value. | 
| actual_major_unit | Specifies actual major unit of the axis. Call method IChart.ValidateChartLayout() previously to get actual value. | 
| actual_minor_unit | Specifies actual minor unit of the axis. Call method IChart.ValidateChartLayout() previously to get actual value. | 
| actual_major_unit_scale | Specifies actual major unit scale of the axis. Call method IChart.ValidateChartLayout() previously to get actual value. | 
| actual_minor_unit_scale | Specifies actual minor unit scale of the axis. Call method IChart.ValidateChartLayout() previously to get actual value. | 
| is_automatic_max_value | Indicates whether the max value is automatically assigned. Read/write bool. | 
| max_value | Represents the maximum value on the value axis. Read/write float. | 
| minor_unit | Represents the minor units for the date or value axis. Read/write float. | 
| is_automatic_minor_unit | Indicates whether the minor unit of the axis is automatically assigned. Read/write bool. | 
| major_unit | Represents the major units for the date or value axis. Read/write float. | 
| is_automatic_major_unit | Indicates whether the major unit of the axis is automatically assigned. Read/write bool. | 
| is_automatic_min_value | Indicates whether the min value is automatically assigned. Read/write bool. | 
| min_value | Represents the minimum value on the value axis. Read/write float. | 
| is_logarithmic | Represents if the value axis scale type is logarithmic or not. Read/write bool. | 
| log_base | Represents the logarithmic base. Default value is 10. Read/write float. | 
| is_plot_order_reversed | Represents if MS PowerPoint plots data points from last to first. Read/write bool. | 
| is_visible | Represents if the axis is visible. Read/write bool. | 
| major_tick_mark | Represents the type of major tick mark for the specified axis. Read/write TickMarkType. | 
| minor_tick_mark | Represents the type of minor tick mark for the specified axis. Read/write TickMarkType. | 
| tick_label_position | Represents the position of tick-mark labels on the specified axis. Read/write TickLabelPositionType. | 
| major_unit_scale | Represents the major unit scale for the date axis. Read/write TimeUnitType. | 
| minor_unit_scale | Represents the major unit scale for the date axis. Read/write TimeUnitType. | 
| base_unit_scale | Specifies the smallest time unit that is represented on the date axis. Read/write TimeUnitType. | 
| minor_grid_lines_format | Represents minor gridlines format on a chart axis. Read-only IChartLinesFormat. | 
| major_grid_lines_format | Represents major gridlines format on a chart axis. Read-only IChartLinesFormat. | 
| show_minor_grid_lines | To hide minor gridline set MinorGridLinesFormat.Line.FillFormat.FillType to FillType.NoFill. Read-only bool. | 
| show_major_grid_lines | To hide major gridline set MajorGridLinesFormat.Line.FillFormat.FillType to FillType.NoFill. Read-only bool. | 
| format | Represents format of axis. Read-only IAxisFormat. | 
| text_format | Represents format of text. Read-only IChartTextFormat. | 
| title | Gets the axis’ title. Read-only IChartTitle. | 
| cross_type | Represents the CrossType on the specified axis where the other axis crosses. Read/write CrossesType. | 
| position | Represents position of axis. Read/write AxisPositionType. | 
| has_title | Determines whether a axis has a visible title. Read/write bool. | 
| number_format | Represents the format string for the Axis Labels. Read/write str. | 
| is_number_format_linked_to_source | Indicates whether the format is linked source data. Read/write bool. | 
| tick_label_rotation_angle | Represents the rotation angle of tick labels. Read/write float. | 
| tick_label_spacing | Specifies how many tick labels to skip between label that is drawn. Applied to category or series axis. Read/write int. | 
| is_automatic_tick_label_spacing | Specifies automatic tick label spacing value. If false: use TickLabelSpacing property. Read/write bool. | 
| tick_marks_spacing | Specifies how many tick marks shall be skipped before the next one shall be drawn. Applied to category or series axis. Read/write int. | 
| is_automatic_tick_marks_spacing | Specifies automatic tick marks spacing value. If false: use TickMarksSpacing property. Read/write bool. | 
| label_offset | Specifies the distance of labels from the axis. Applied to category or date axis. Value must be between 0% and 1000%. Read/write int. | 
| aggregation_type | Represents aggregation type of category axis (binning). Applied to category. Used with Histogram or HistogramPareto series only. | 
| bin_width | Specifies bin width when AggregationType property value setted to AxisAggregationType.ByBinWidth. Applied to category axes. Used with Histogram or HistogramPareto series only. | 
| number_of_bins | Specifies number of bins when AggregationType property value setted to AxisAggregationType.ByNumberOfBins. Applied to category axes. Used with Histogram or HistogramPareto series only. | 
| is_overflow_bin | Specifies if overflow bin applied. Use IsAutomaticOverflowBin and OverflowBin to adjust overflow bin value. | 
| is_automatic_overflow_bin | Specifies automatic overflow bin value. If false: use OverflowBin property. | 
| overflow_bin | Specifies overflow bin custom value. Applied when IsAutomaticOverflowBin property setted to false and IsOverflowBin property equals true. | 
| is_underflow_bin | Specifies if underflow bin applied. Use IsAutomaticUnderflowBin and UnderflowBin to adjust underflow bin value. | 
| is_automatic_underflow_bin | Specifies automatic underflow bin value. If false: use UnderflowBin property. | 
| underflow_bin | Specifies underflow bin custom value. Applied when IsAutomaticUnderflowBin property setted to false and IsUnderflowBin property equals true. | 
| slide | |
| presentation | 
Methods
| Method | Description | 
|---|---|
| set_category_axis_type_automatically | Sets IAxis.CategoryAxisType property with a value that is automatically determined based on axis data. | 
See Also
- module aspose.slides.charts
- library Aspose.Slides