OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] (OFFICE-2119) Member Proposal: date axis on charts


     [ https://issues.oasis-open.org/browse/OFFICE-2119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Stahl updated OFFICE-2119:
----------------------------------
    Proposal: 
19.15 chart:axis-type

The chart:axis-type attribute specifies if the axis values are interpreted as text, dates, or automatically by the consumer.

If an axis type is set to “date” or has been set to “auto” and interpreted by the consumer to contain dates, the axis will rendered with the dates scaled across the axis and the data points placed at the corresponding date on the axis.

If the attribute is missing, the default value is "auto".

11.10 chart:date-scale

The <chart:date-scale> element specifies how an axis that contains date values is formatted.

19.15 chart:base-time-unit 

The chart:base-time-unit attribute specifies the smallest time unit that is displayed on the date axis.

If the attribute is missing, the resolution is chosen automatically by the consumer.

19.24 chart:major-interval-unit

The chart:major-interval-unit attribute specifies the unit of the major interval on a date axis.

The unit shall be the same as the chart:base-time-unit or greater.

19.24 chart:major-interval-value 

The chart:major-interval-value attribute specifies the distance between two major interval marks on a date axis.

The major interval for a linear scaled axis is simply the distance between two major interval marks.

The major interval for logarithmic scales defines the distance in orders of magnitude between two major interval tick marks: let x1 and x2 be consecutive major tick marks, then the value of the attribute is the same as log(x2)-log(x1).

If the attribute is missing, the distance between major tick marks is chosen automatically by the consumer.

19.24 chart:minor-interval-value

The chart:minor-interval-value attribute specifies the number of minor intervals per major interval on a date axis.

If the attribute is missing, the distance between minor tick marks is chosen automatically by the consumer.

The value shall not be greater than the chart:major-interval-value.

19.24 chart:minor-interval-unit

The chart:minor-interval-unit attribute specifies the unit of the minor interval on a date axis.

The unit shall be the same as the chart:base-time-unit or greater.


{noformat}

--- Documents/odf/OpenDocument-v1.2-os-schema.rng	2014-11-10 16:37:52.035133745 +0100
+++ Documents/odf/tc/2118-schema.rng	2017-06-27 22:16:13.313707085 +0200
@@ -8552,22 +8552,45 @@
 		<element name="chart:axis">
 			<ref name="chart-axis-attlist"/>
 			<optional>
 				<ref name="chart-title"/>
 			</optional>
 			<optional>
 				<ref name="chart-categories"/>
 			</optional>
 			<zeroOrMore>
 				<ref name="chart-grid"/>
 			</zeroOrMore>
+			<optional>
+				<choice>
+					<group>
+						<attribute name="chart:axis-type">
+							<value>auto</value>
+						</attribute>
+						<optional>
+							<ref name="chart-date-scale"/>
+						</optional>
+					</group>
+					<group>
+						<attribute name="chart:axis-type">
+							<value>date</value>
+						</attribute>
+						<ref name="chart-date-scale"/>
+					</group>
+					<group>
+						<attribute name="chart:axis-type">
+							<value>text</value>
+						</attribute>
+					</group>
+				</choice>
+			</optional>
 		</element>
 	</define>
 	<define name="chart-axis-attlist">
 		<interleave>
 			<attribute name="chart:dimension">
 				<ref name="chart-dimension"/>
 			</attribute>
 			<optional>
 				<attribute name="chart:name">
 					<ref name="string"/>
 				</attribute>
@@ -8578,22 +8601,56 @@
 				</attribute>
 			</optional>
 		</interleave>
 	</define>
 	<define name="chart-dimension">
 		<choice>
 			<value>x</value>
 			<value>y</value>
 			<value>z</value>
 		</choice>
 	</define>
+	<define name="chart-date-scale">
+		<element name="chart:date-scale">
+			<interleave>
+				<optional>
+					<attribute name="chart:base-time-unit">
+						<ref name="chart-time-unit"/>
+					</attribute>
+				</optional>
+				<optional>
+					<attribute name="chart:major-interval-value">
+						<ref name="positiveInteger"/>
+					</attribute>
+					<attribute name="chart:major-interval-unit">
+						<ref name="chart-time-unit"/>
+					</attribute>
+				</optional>
+				<optional>
+					<attribute name="chart:minor-interval-value">
+						<ref name="positiveInteger"/>
+					</attribute>
+					<attribute name="chart:minor-interval-unit">
+						<ref name="chart-time-unit"/>
+					</attribute>
+				</optional>
+			</interleave>
+		</element>
+	</define>
+	<define name="chart-time-unit">
+		<choice>
+			<value>days</value>
+			<value>months</value>
+			<value>years</value>
+		</choice>
+	</define>
 	<define name="chart-categories">
 		<element name="chart:categories">
 			<optional>
 				<attribute name="table:cell-range-address">
 					<ref name="cellRangeAddressList"/>
 				</attribute>
 			</optional>
 		</element>
 	</define>
 	<define name="chart-grid">
 		<element name="chart:grid">

{noformat}


  was:
19.15 chart:axis-type

The chart:axis-type attribute specifies if the axis values are interpreted as text, dates, or automatically by the consumer.

If an axis type is set to “date” or has been set to “auto” and interpreted by the consumer to contain dates, the axis will rendered with the dates scaled across the axis and the data points placed at the corresponding date on the axis.

If the attribute is missing, the default value is "auto".

11.10 chart:date-scale

The <chart:date-scale> element specifies how an axis that contains date values is formatted.

19.15 chart:base-time-unit 

The chart:base-time-unit attribute specifies the smallest time unit that is displayed on the date axis.

If the attribute is missing, the resolution is chosen automatically by the consumer.

19.24 chart:major-interval-unit

The chart:major-interval-unit attribute specifies the unit of the major interval on a date axis.

The unit shall be the same as the chart:base-time-unit or greater.

19.24 chart:major-interval-value 

The chart:major-interval-value attribute specifies the distance between two major interval marks on a date axis.

The major interval for a linear scaled axis is simply the distance between two major interval marks.

The major interval for logarithmic scales defines the distance in orders of magnitude between two major interval tick marks: let x1 and x2 be consecutive major tick marks, then the value of the attribute is the same as log(x2)-log(x1).

If the attribute is missing, the distance between major tick marks is chosen automatically by the consumer.

19.24 chart:minor-interval-value

The chart:minor-interval-value attribute specifies the number of minor intervals per major interval on a date axis.

If the attribute is missing, the distance between minor tick marks is chosen automatically by the consumer.

The value shall not be greater than the chart:major-interval-value.

19.24 chart:minor-interval-unit

The chart:minor-interval-unit attribute specifies the unit of the minor interval on a date axis.

The unit shall be the same as the chart:base-time-unit or greater.



--- Documents/odf/OpenDocument-v1.2-os-schema.rng	2014-11-10 16:37:52.035133745 +0100
+++ Documents/odf/tc/2118-schema.rng	2017-06-27 22:16:13.313707085 +0200
@@ -8552,22 +8552,45 @@
 		<element name="chart:axis">
 			<ref name="chart-axis-attlist"/>
 			<optional>
 				<ref name="chart-title"/>
 			</optional>
 			<optional>
 				<ref name="chart-categories"/>
 			</optional>
 			<zeroOrMore>
 				<ref name="chart-grid"/>
 			</zeroOrMore>
+			<optional>
+				<choice>
+					<group>
+						<attribute name="chart:axis-type">
+							<value>auto</value>
+						</attribute>
+						<optional>
+							<ref name="chart-date-scale"/>
+						</optional>
+					</group>
+					<group>
+						<attribute name="chart:axis-type">
+							<value>date</value>
+						</attribute>
+						<ref name="chart-date-scale"/>
+					</group>
+					<group>
+						<attribute name="chart:axis-type">
+							<value>text</value>
+						</attribute>
+					</group>
+				</choice>
+			</optional>
 		</element>
 	</define>
 	<define name="chart-axis-attlist">
 		<interleave>
 			<attribute name="chart:dimension">
 				<ref name="chart-dimension"/>
 			</attribute>
 			<optional>
 				<attribute name="chart:name">
 					<ref name="string"/>
 				</attribute>
@@ -8578,22 +8601,56 @@
 				</attribute>
 			</optional>
 		</interleave>
 	</define>
 	<define name="chart-dimension">
 		<choice>
 			<value>x</value>
 			<value>y</value>
 			<value>z</value>
 		</choice>
 	</define>
+	<define name="chart-date-scale">
+		<element name="chart:date-scale">
+			<interleave>
+				<optional>
+					<attribute name="chart:base-time-unit">
+						<ref name="chart-time-unit"/>
+					</attribute>
+				</optional>
+				<optional>
+					<attribute name="chart:major-interval-value">
+						<ref name="positiveInteger"/>
+					</attribute>
+					<attribute name="chart:major-interval-unit">
+						<ref name="chart-time-unit"/>
+					</attribute>
+				</optional>
+				<optional>
+					<attribute name="chart:minor-interval-value">
+						<ref name="positiveInteger"/>
+					</attribute>
+					<attribute name="chart:minor-interval-unit">
+						<ref name="chart-time-unit"/>
+					</attribute>
+				</optional>
+			</interleave>
+		</element>
+	</define>
+	<define name="chart-time-unit">
+		<choice>
+			<value>days</value>
+			<value>months</value>
+			<value>years</value>
+		</choice>
+	</define>
 	<define name="chart-categories">
 		<element name="chart:categories">
 			<optional>
 				<attribute name="table:cell-range-address">
 					<ref name="cellRangeAddressList"/>
 				</attribute>
 			</optional>
 		</element>
 	</define>
 	<define name="chart-grid">
 		<element name="chart:grid">



> Member Proposal: date axis on charts
> ------------------------------------
>
>                 Key: OFFICE-2119
>                 URL: https://issues.oasis-open.org/browse/OFFICE-2119
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: New Feature
>          Components: Chart, Part 1 (Schema)
>            Reporter: Rob Weir
>            Assignee: Regina Henschel
>            Priority: Major
>             Fix For: ODF 1.3
>
>
> http://wiki.oasis-open.org/office/data_axis_on_charts



--
This message was sent by Atlassian JIRA
(v7.7.2#77003)


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]