Chart for WinRT > Chart Features > Axes |
The following properties below represent the layout and style of the axes in C1Chart:
Property Description Axis.Position Allows you to set the position of the axis. For example, you may want to display the X-axis above the data instead of below. For more information see Axis Position. Axis.Reversed Allows you to reverse the direction of the axis. For example, you can show Y values going down instead of up. For more information see Inverted and Reversed Chart Axes. Axis.Title Sets a string to display next to the axis. If your data includes measurements it’s helpful to include the unit of measurement (grams, meters, liters, etc) in the axis title. Axis titles can be added to Area, XY-Plot, Bar, Hi-Lo-Open-Close or Candle charts. Axis.Foreground Gets or sets the foreground brush of the axis. This colors the Axis Gridline. Axis.AxisLine Gets or sets the axis line. The axis line connects the points on the plot that correspond to the Min and Max of the axis. Axis.IsTime Gets or sets whether the axis represents time values. Axis.Scale Gets or sets the scale of the axis. Axis.MinScale Gets or sets the minimal scale of the axis.
The annotation along each axis is an important part of any chart. The chart annotates the axes with numbers based on the data/values entered into the different DataSeries objects. Annotation for the Axes will always display basic text without any applied formatting.
The chart automatically produces the most natural annotation possible, even as chart data changes. The following Annotation properties can be modified to perfect this process:
Property Description Axis.ItemsSource Gets or sets the source for axis annotations. Axis.AnnoFormat A set of predefined formats used to format the values displayed next to the axis. Axis.AnnoAngle Allows you to rotate the values so they take up less space along the axis. For more information see Axis Annotation Rotation. Axis.AnnoTemplate Gets or sets the template for axis annotation.
The following properties represent the scaling, tickmarks, and gridline styles and function for the axes in C1Chart:
Property Description Determine whether the minimum and maximum values for the axis should be calculated automatically. For more information see Axis Bounds. Set the minimum and maximum values for the axis (when AutoMin and AutoMax are set to False). For more information see Axis Bounds. Set the spacing between the major and minor tickmarks (when the AutoMajor and AutoMinor properties are set to False). Axis.MajorGridFill Gets or sets the fill based of the major grid. The MajorGridFill enables you to create a striped plot appearance. Gets or sets the brush of the major/minor grid lines. Gets or sets the dash pattern of the major/minor grid lines. Gets or sets the thickness of the major/minor grid lines. Gets or sets the major/minor tick height. Gets or sets the major/minor tick stroke.
Gets or sets the major/minor tick thickness.