|
1 | | ---- |
2 | | -title: ErrorBar class |
3 | | -second_title: Aspose.Cells for Python via .NET API References |
4 | | -description: |
5 | | -type: docs |
6 | | -weight: 160 |
7 | | -url: /aspose.cells.charts/errorbar/ |
8 | | -is_root: false |
| 1 | +--- |
| 2 | +title: ErrorBar class |
| 3 | +second_title: Aspose.Cells for Python via .NET API References |
| 4 | +description: |
| 5 | +type: docs |
| 6 | +weight: 160 |
| 7 | +url: /aspose.cells.charts/errorbar/ |
| 8 | +is_root: false |
9 | 9 | --- |
10 | | - |
| 10 | + |
11 | 11 | ## ErrorBar class |
12 | | - |
| 12 | + |
13 | 13 | Represents error bar of data series. |
14 | | - |
15 | 14 |
|
16 | 15 |
|
17 | | -**Inheritance:** [`ErrorBar`](/cells/python-net/aspose.cells.charts/errorbar) → |
| 16 | + |
| 17 | +**Inheritance:** [`ErrorBar`](/cells/python-net/aspose.cells.charts/errorbar) → |
18 | 18 | [`Line`](/cells/python-net/aspose.cells.drawing/line) |
19 | | - |
| 19 | + |
20 | 20 |
|
21 | 21 |
|
22 | 22 | The ErrorBar type exposes the following members: |
23 | | - |
24 | | -### Properties |
25 | | -| Property | Description | |
26 | | -| :- | :- | |
27 | | -| [compound_type](/cells/python-net/aspose.cells.charts/errorbar/compound_type) | Specifies the compound line type | |
28 | | -| [dash_type](/cells/python-net/aspose.cells.charts/errorbar/dash_type) | Specifies the dash line type | |
29 | | -| [cap_type](/cells/python-net/aspose.cells.charts/errorbar/cap_type) | Specifies the ending caps. | |
30 | | -| [join_type](/cells/python-net/aspose.cells.charts/errorbar/join_type) | Specifies the joining caps. | |
31 | | -| [begin_type](/cells/python-net/aspose.cells.charts/errorbar/begin_type) | Specifies an arrowhead for the begin of a line. | |
32 | | -| [end_type](/cells/python-net/aspose.cells.charts/errorbar/end_type) | Specifies an arrowhead for the end of a line. | |
33 | | -| [begin_arrow_length](/cells/python-net/aspose.cells.charts/errorbar/begin_arrow_length) | Specifies the length of the arrowhead for the begin of a line. | |
34 | | -| [end_arrow_length](/cells/python-net/aspose.cells.charts/errorbar/end_arrow_length) | Specifies the length of the arrowhead for the end of a line. | |
35 | | -| [begin_arrow_width](/cells/python-net/aspose.cells.charts/errorbar/begin_arrow_width) | Specifies the width of the arrowhead for the begin of a line. | |
36 | | -| [end_arrow_width](/cells/python-net/aspose.cells.charts/errorbar/end_arrow_width) | Specifies the width of the arrowhead for the end of a line. | |
37 | | -| [theme_color](/cells/python-net/aspose.cells.charts/errorbar/theme_color) | Gets and sets the theme color. | |
38 | | -| [color](/cells/python-net/aspose.cells.charts/errorbar/color) | Represents the Color of the line. | |
39 | | -| [transparency](/cells/python-net/aspose.cells.charts/errorbar/transparency) | Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear). | |
40 | | -| [style](/cells/python-net/aspose.cells.charts/errorbar/style) | Represents the style of the line. | |
41 | | -| [weight](/cells/python-net/aspose.cells.charts/errorbar/weight) | Gets or sets the [`WeightType`](/cells/python-net/aspose.cells.drawing/weighttype) of the line. | |
42 | | -| [weight_pt](/cells/python-net/aspose.cells.charts/errorbar/weight_pt) | Gets or sets the weight of the line in unit of points. | |
43 | | -| [weight_px](/cells/python-net/aspose.cells.charts/errorbar/weight_px) | Gets or sets the weight of the line in unit of pixels. | |
44 | | -| [formatting_type](/cells/python-net/aspose.cells.charts/errorbar/formatting_type) | Gets or sets format type. | |
45 | | -| [is_automatic_color](/cells/python-net/aspose.cells.charts/errorbar/is_automatic_color) | Indicates whether the color of line is automatic assigned. | |
46 | | -| [is_visible](/cells/python-net/aspose.cells.charts/errorbar/is_visible) | Represents whether the line is visible. | |
47 | | -| [is_auto](/cells/python-net/aspose.cells.charts/errorbar/is_auto) | Indicates whether this line style is auto assigned. | |
48 | | -| [gradient_fill](/cells/python-net/aspose.cells.charts/errorbar/gradient_fill) | Represents gradient fill. | |
49 | | -| [type](/cells/python-net/aspose.cells.charts/errorbar/type) | Represents error bar amount type. | |
50 | | -| [display_type](/cells/python-net/aspose.cells.charts/errorbar/display_type) | Represents error bar display type. | |
51 | | -| [amount](/cells/python-net/aspose.cells.charts/errorbar/amount) | Represents amount of error bar.<br/> The amount must be greater than or equal to zero. | |
52 | | -| [show_marker_t_top](/cells/python-net/aspose.cells.charts/errorbar/show_marker_t_top) | Indicates if formatting error bars with a T-top. | |
53 | | -| [plus_value](/cells/python-net/aspose.cells.charts/errorbar/plus_value) | Represents positive error amount when error bar type is Custom. | |
54 | | -| [minus_value](/cells/python-net/aspose.cells.charts/errorbar/minus_value) | Represents negative error amount when error bar type is Custom. | |
55 | | - |
56 | | - |
| 23 | + |
| 24 | +### Properties |
| 25 | +| Property | Description | |
| 26 | +| :- | :- | |
| 27 | +| [compound_type](/cells/python-net/aspose.cells.charts/errorbar/compound_type) | Specifies the compound line type | |
| 28 | +| [dash_type](/cells/python-net/aspose.cells.charts/errorbar/dash_type) | Specifies the dash line type | |
| 29 | +| [cap_type](/cells/python-net/aspose.cells.charts/errorbar/cap_type) | Specifies the ending caps. | |
| 30 | +| [join_type](/cells/python-net/aspose.cells.charts/errorbar/join_type) | Specifies the joining caps. | |
| 31 | +| [begin_type](/cells/python-net/aspose.cells.charts/errorbar/begin_type) | Specifies an arrowhead for the begin of a line. | |
| 32 | +| [end_type](/cells/python-net/aspose.cells.charts/errorbar/end_type) | Specifies an arrowhead for the end of a line. | |
| 33 | +| [begin_arrow_length](/cells/python-net/aspose.cells.charts/errorbar/begin_arrow_length) | Specifies the length of the arrowhead for the begin of a line. | |
| 34 | +| [end_arrow_length](/cells/python-net/aspose.cells.charts/errorbar/end_arrow_length) | Specifies the length of the arrowhead for the end of a line. | |
| 35 | +| [begin_arrow_width](/cells/python-net/aspose.cells.charts/errorbar/begin_arrow_width) | Specifies the width of the arrowhead for the begin of a line. | |
| 36 | +| [end_arrow_width](/cells/python-net/aspose.cells.charts/errorbar/end_arrow_width) | Specifies the width of the arrowhead for the end of a line. | |
| 37 | +| [theme_color](/cells/python-net/aspose.cells.charts/errorbar/theme_color) | Gets and sets the theme color. | |
| 38 | +| [color](/cells/python-net/aspose.cells.charts/errorbar/color) | Represents the Color of the line. | |
| 39 | +| [transparency](/cells/python-net/aspose.cells.charts/errorbar/transparency) | Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear). | |
| 40 | +| [style](/cells/python-net/aspose.cells.charts/errorbar/style) | Represents the style of the line. | |
| 41 | +| [weight](/cells/python-net/aspose.cells.charts/errorbar/weight) | Gets or sets the [`WeightType`](/cells/python-net/aspose.cells.drawing/weighttype) of the line. | |
| 42 | +| [weight_pt](/cells/python-net/aspose.cells.charts/errorbar/weight_pt) | Gets or sets the weight of the line in unit of points. | |
| 43 | +| [weight_px](/cells/python-net/aspose.cells.charts/errorbar/weight_px) | Gets or sets the weight of the line in unit of pixels. | |
| 44 | +| [formatting_type](/cells/python-net/aspose.cells.charts/errorbar/formatting_type) | Gets or sets format type. | |
| 45 | +| [is_automatic_color](/cells/python-net/aspose.cells.charts/errorbar/is_automatic_color) | Indicates whether the color of line is automatic assigned. | |
| 46 | +| [is_visible](/cells/python-net/aspose.cells.charts/errorbar/is_visible) | Represents whether the line is visible. | |
| 47 | +| [is_auto](/cells/python-net/aspose.cells.charts/errorbar/is_auto) | Indicates whether this line style is auto assigned. | |
| 48 | +| [gradient_fill](/cells/python-net/aspose.cells.charts/errorbar/gradient_fill) | Represents gradient fill. | |
| 49 | +| [type](/cells/python-net/aspose.cells.charts/errorbar/type) | Represents error bar amount type. | |
| 50 | +| [display_type](/cells/python-net/aspose.cells.charts/errorbar/display_type) | Represents the display type of error bar. | |
| 51 | +| [amount](/cells/python-net/aspose.cells.charts/errorbar/amount) | Represents amount of error bar. | |
| 52 | +| [show_marker_t_top](/cells/python-net/aspose.cells.charts/errorbar/show_marker_t_top) | Indicates if formatting error bars with a T-top. | |
| 53 | +| [plus_value](/cells/python-net/aspose.cells.charts/errorbar/plus_value) | Represents positive error amount when error bar type is Custom. | |
| 54 | +| [minus_value](/cells/python-net/aspose.cells.charts/errorbar/minus_value) | Represents negative error amount when error bar type is Custom. | |
| 55 | + |
| 56 | + |
57 | 57 |
|
58 | 58 | ### Example |
59 | | - |
| 59 | + |
60 | 60 |
|
61 | 61 | ```python |
62 | | -from aspose.cells import Workbook |
63 | | -from aspose.cells.charts import ChartType, ErrorBarDisplayType, ErrorBarType |
64 | | - |
65 | | -workbook = Workbook() |
66 | | -cells = workbook.worksheets[0].cells |
67 | | -cells.get("a1").put_value(2) |
68 | | -cells.get("a2").put_value(5) |
69 | | -cells.get("a3").put_value(3) |
70 | | -cells.get("a4").put_value(6) |
71 | | -cells.get("b1").put_value(4) |
72 | | -cells.get("b2").put_value(3) |
73 | | -cells.get("b3").put_value(6) |
74 | | -cells.get("b4").put_value(7) |
75 | | -cells.get("C1").put_value("Q1") |
76 | | -cells.get("C2").put_value("Q2") |
77 | | -cells.get("C3").put_value("Y1") |
78 | | -cells.get("C4").put_value("Y2") |
79 | | -chartIndex = workbook.worksheets[0].charts.add(ChartType.COLUMN, 11, 0, 27, 10) |
80 | | -chart = workbook.worksheets[0].charts[chartIndex] |
81 | | -chart.n_series.add("A1:B4", True) |
82 | | -chart.n_series.category_data = "C1:C4" |
83 | | -for i in range(len(chart.n_series)): |
84 | | - aseries = chart.n_series[i] |
85 | | - aseries.y_error_bar.display_type = ErrorBarDisplayType.MINUS |
86 | | - aseries.y_error_bar.type = ErrorBarType.FIXED_VALUE |
87 | | - aseries.y_error_bar.amount = 5.0 |
88 | | - |
89 | | -``` |
90 | | - |
91 | | -### See Also |
92 | | -* module [`aspose.cells.charts`](..) |
93 | | -* class [`ErrorBar`](/cells/python-net/aspose.cells.charts/errorbar) |
94 | | -* class [`Line`](/cells/python-net/aspose.cells.drawing/line) |
95 | | -* class [`WeightType`](/cells/python-net/aspose.cells.drawing/weighttype) |
| 62 | +from aspose.cells import Workbook |
| 63 | +from aspose.cells.charts import ChartType, ErrorBarDisplayType, ErrorBarType |
| 64 | + |
| 65 | +workbook = Workbook() |
| 66 | +cells = workbook.worksheets[0].cells |
| 67 | +cells.get("a1").put_value(2) |
| 68 | +cells.get("a2").put_value(5) |
| 69 | +cells.get("a3").put_value(3) |
| 70 | +cells.get("a4").put_value(6) |
| 71 | +cells.get("b1").put_value(4) |
| 72 | +cells.get("b2").put_value(3) |
| 73 | +cells.get("b3").put_value(6) |
| 74 | +cells.get("b4").put_value(7) |
| 75 | +cells.get("C1").put_value("Q1") |
| 76 | +cells.get("C2").put_value("Q2") |
| 77 | +cells.get("C3").put_value("Y1") |
| 78 | +cells.get("C4").put_value("Y2") |
| 79 | +chartIndex = workbook.worksheets[0].charts.add(ChartType.COLUMN, 11, 0, 27, 10) |
| 80 | +chart = workbook.worksheets[0].charts[chartIndex] |
| 81 | +chart.n_series.add("A1:B4", True) |
| 82 | +chart.n_series.category_data = "C1:C4" |
| 83 | +for i in range(len(chart.n_series)): |
| 84 | + aseries = chart.n_series[i] |
| 85 | + aseries.y_error_bar.display_type = ErrorBarDisplayType.MINUS |
| 86 | + aseries.y_error_bar.type = ErrorBarType.FIXED_VALUE |
| 87 | + aseries.y_error_bar.amount = 5.0 |
| 88 | + |
| 89 | +``` |
| 90 | + |
| 91 | +### See Also |
| 92 | +* module [`aspose.cells.charts`](..) |
| 93 | +* class [`ErrorBar`](/cells/python-net/aspose.cells.charts/errorbar) |
| 94 | +* class [`Line`](/cells/python-net/aspose.cells.drawing/line) |
| 95 | +* class [`WeightType`](/cells/python-net/aspose.cells.drawing/weighttype) |
0 commit comments