[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: proposals for charts: percentage-data-style-name, data-label-number,label-separator
Dear TC members,
I am forwarding the following three proposals created by the
OpenOffice.org-Chart development team concerning chart styles and labels
for inclusion into OpenDocument 1.2...
----------------------------------------------------------------------
Chart: Numberformat for percentage display
Some chart elements can have the style:number-style-name attribute in
their associated styles (this is missing in the spec). In addition, some
elements can also have a number format for display of percentage values
(this is a new proposal).
* In 14.1.0.9 Data Style Name change the text to:
Table cell styles and chart styles can have an associated data style.
This applies to automatic and common styles. The data style is
referenced by the style:data-style-name attribute. See section 14.7 for
details about data styles.
Chart styles with an associated data style name are used by the elements
chart:axis, chart:series and chart:data-point.
* Add a new section (after 14.1.0.9):
Percentage Data Style Name
In addition to a data style, a chart style can also have an associated
percentage data style that is used for display of percentage numbers in
the case when an object displays absolute numbers as well as percentages
at the same time.
Chart styles with an associated percentage data style name are used by
the elements chart:axis, chart:series and chart:data-point.
<define name="style-style-attlist" combine="interleave">
<optional>
<attribute name="style:percentage-data-style-name">
<ref name="styleNameRef"/>
</attribute>
</optional>
</define>
----------------------------------------------------------------------
Chart: Data Labels with Percentage and Value
For data labels you can have the property chart:data-label-number. This
can have three different values. This proposal extends the list by one
possible value: "value-and-percentage".
Also, the default is missing for this optional property. Proposal: "none".
Change the schema spec in 15.32.3. Data Labels subsection Value:
<define name="style-chart-properties-attlist" combine="interleave">
<optional>
<attribute name="chart:data-label-number" a:defaultValue="none">
<choice>
<value>none</value>
<value>value</value>
<value>percentage</value>
<value>value-and-percentage</value>
</choice>
</attribute>
</optional>
</define>
----------------------------------------------------------------------
Chart: Label Separator
Add a new subsection to 15.32.3 Data Labels
Separator
The chart:label-separator property element specifies text that is used
for separating different parts of a textual data label. These parts can
be the value as number, the value as a percentage (see
chart:data-label-number), and the label text (see chart:data-label-text).
The default for this property, that is used when the
chart:label-separator element is ommited, is a space. Other typical
values are a comma, a semicolon, or a new-line.
<define name="style-chart-properties-attlist" combine="interleave">
<optional>
<element name="chart:label-separator">
<text-p/>
</element>
</optional>
</define>
--
Lars Oppermann <lars.oppermann@sun.com> Sun Microsystems
Software Engineer Nagelsweg 55
Phone: +49 40 23646 959 20097 Hamburg, Germany
Fax: +49 40 23646 550 http://www.sun.com/staroffice
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]