AxisBuiltInUnit Enumeration |
Specifies the display units for an axis.
Namespace:
Aspose.Words.Drawing.Charts
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum AxisBuiltInUnit
Public Enumeration AxisBuiltInUnit
public enum class AxisBuiltInUnit
Members
| Member name | Value | Description |
---|
| None | 0 |
Specifies the values on the chart shall displayed as is.
|
| Custom | 1 |
Specifies the values on the chart shall be divided by a user-defined divisor. This value is not supported
by the new chart types of MS Office 2016.
|
| Billions | 2 |
Specifies the values on the chart shall be divided by 1,000,000,000.
|
| HundredMillions | 3 |
Specifies the values on the chart shall be divided by 100,000,000.
|
| Hundreds | 4 |
Specifies the values on the chart shall be divided by 100.
|
| HundredThousands | 5 |
Specifies the values on the chart shall be divided by 100,000.
|
| Millions | 6 |
Specifies the values on the chart shall be divided by 1,000,000.
|
| TenMillions | 7 |
Specifies the values on the chart shall be divided by 10,000,000.
|
| TenThousands | 8 |
Specifies the values on the chart shall be divided by 10,000.
|
| Thousands | 9 |
Specifies the values on the chart shall be divided by 1,000.
|
| Trillions | 10 |
Specifies the values on the chart shall be divided by 1,000,000,000,0000.
|
| Percentage | 11 |
Specifies the values on the chart shall be divided by 0.01. This value is supported only by the new chart
types of MS Office 2016.
|
ExamplesShows how to manipulate the tick marks and displayed values of a chart axis.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape shape = builder.InsertChart(ChartType.Scatter, 450, 250);
Chart chart = shape.Chart;
ChartAxis axis = chart.AxisY;
axis.MajorTickMark = AxisTickMark.Outside;
axis.MinorTickMark = AxisTickMark.Outside;
axis.MajorUnit = 10.0;
axis.MinorUnit = 1.0;
axis.Scaling.Minimum = new AxisBound(-10);
axis.Scaling.Maximum = new AxisBound(20);
axis = chart.AxisX;
axis.MajorTickMark = AxisTickMark.Inside;
axis.MinorTickMark = AxisTickMark.Inside;
axis.MajorUnit = 10.0;
axis.Scaling.Minimum = new AxisBound(-10);
axis.Scaling.Maximum = new AxisBound(30);
axis.TickLabelSpacing = 2;
axis.TickLabelAlignment = ParagraphAlignment.Right;
axis.DisplayUnit.Unit = AxisBuiltInUnit.Millions;
axis.DisplayUnit.CustomUnit = 1000000.0;
doc.Save(ArtifactsDir + "Charts.ChartAxisDisplayUnit.docx");
See Also