This wiki is a read-only archive. It was frozen on 3 October 2026 and is no longer edited.

Axes Position Proposal

Summary

Proposal owner: Michael Brauer

Proposal short name:Axes Positioning

Rationale

Use cases:

So far the positioning of axes within charts is not well defined in ODF. There is demand from schools to have the axis and the axis labels placed at zero. There is also demand to place axes in an Arabic version different to a western version. OpenOffice.org did place the axes and axes labels at the edges so far. A competitor can place the axis line and the axes labels more flexible. To solve these conflicts we need some additional attributes to define the positioning for the different parts of the axes.

Alternatives considered:

none

Requested changes to the ODF Standard

Note: The ODF document that contains the original proposal contains some explanatory images.

Text changes/additions (please state section numbers):

Section 16.16 <style:chart-properties> (change)

The <style:chart-properties> element may have the following attributes: ... chart:axis-position 18.x, chart:axis-label-position 18.y, chart:tick-mark-position 18.z ...

Section 18.x chart:axis-position (new section)

The chart:axis-position attribute specifies the position of the axis line on the scale of the crossing axis.

If the attribute is set for a y-axis, the position indicates a value on the scale of the first x-axis.

If the attribute is set for a x-axis, the position indicates a value on the scale of the first y-axis.

This attribute should be used within a chart style that is applied to a <chart:axis> element.

Following values are available:

Section 18.y chart:axis-label-position (new section)

The chart:axis-label-position attribute specifies the position of the axis labels.

The following values are available:

If the chart:axis-label-position attribute is missing but a chart:axis-position attribute is given, chart:axis-label-position is assumed to be near-axis.

This attribute should be used within a chart style that is applied to a <chart:axis> element.

Section 18.z chart:tick-mark-position (new section)

The chart:tick-mark-position attribute specifies the position of the interval marks.

The following values are available:

This setting makes a difference only when the labels are not placed at the axis line, that is when attribute axis-label-position equals outside-end or outside-start.

When the chart:tick-mark-position attribute is missing but a chart:axis-position attribute is given, chart:tick-mark-position is assumed to be at-labels-and-axis.

This attribute should be used within a chart style that is applied to a <chart:axis> element.

Section 18.60 chart:origin (change)

The chart:origin attribute defines the origin of the graphical representation of the data series attached to this axes. For example, the beginning of the bars in a bar chart or the base line in an area chart can be set by the chart:origin attribute in the style at the y-axis where the series is attached to.

When the first x-axis has an attribute chart:axis-position that position is taken to indicate the origin of the data points attached to the first y-axis and thus overrides the chart:origin attribute in the first y-axis.

This attribute should be used within a chart style that is applied to a <chart:axis> element.

Section 10.7 <chart:axis> (remove italic text)

The <chart:axis> element specifies an axis for a chart.

The position of an axis in a chart is determined by the rendering application and depends on the chart type.

Schema changes/additions:

<define name="style-chart-properties-attlist" combine="interleave">
        <optional>
                <attribute name="chart:axis-position">
                        <choice>
                                <value>start</value>
                                <value>end</value>
                                <ref name="double"/>
                        </choice>
                </attribute>
        </optional>
</define>

<define name="style-chart-properties-attlist" combine="interleave">
        <optional>
                <attribute name="chart:axis-label-position">
                        <choice>
                                <value>near-axis</value>
                                <value>near-axis-other-side</value>
                                <value>outside-start</value>
                                <value>outside-end</value>
                                </choice>
                </attribute>
        </optional>
</define>

<define name="style-chart-properties-attlist" combine="interleave">
        <optional>
                <attribute name="chart:tick-mark-position">
                        <choice>
                                <value>at-labels</value>
                                <value>at-axis</value>
                                <value>at-labels-and-axis</value>
                        </choice>
                </attribute>
        </optional>
</define>

Impacts

Conformance:

No conformance issue known.

Backwards compatibility:

This addition will not cause a backward compatibility issue since they are new attributes.

Accessibility impact:

There is no impact on accessibility.

Workflow (to be filled in by TC Chairs)

Category: CategoryIntegratedProposal

Date Proposal initially made: 5-Nov-2008

Dates Proposal discussed on TC calls: 10-Nov-2008

Date vote is requested:

Date vote is held: 17-Nov-2008

Results of vote: Approved

Version in which this proposal has been integrated: ODF 1.2 draft 8