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: Proposal: [Fwd: ODF 1.2: Data Label Positions version we hopefully canagree on]


Dear TC,

This is the latest proposal concerning the auto label positions. I 
understand that David and Bjoern have agreed on this version so this is 
what we can decide upon in our next meeting...

Cheers,
Lars

-------- Original Message --------
Subject: ODF 1.2: Data Label Positions version we hopefully can agree on
Date: Fri, 24 Aug 2007 13:38:40 +0200
From: Bjoern Milcke <Bjoern.Milcke@Sun.COM>
To: David Faure <faure@kde.org>, Michael Brauer <Michael.Brauer@Sun.COM>
CC: Lars Oppermann <Lars.Oppermann@Sun.COM>


this is the updated proposal for data label positions. This is what I did:

* I added the hint that chart types must support all values except
inside, outside and near-origin. The others should have some meaning for
every chart type. (see
http://lists.oasis-open.org/archives/office/200704/msg00004.html)

* I added the north-west, south-west, north-east and south-east values

* I added the negative label positions with some explanatory text

What I didn't do:

* I didn't add more examples. I think there are no additional examples
for the additional wind-directions necessary. (And it was quite
complicated to generate the images and fit them into the table)

* I did not add the anchor attributes. As we discussed this already, I
would suggest that you write proposals for all the things you need for
KDChart at the time you intend to implement it, including this part. I
see no need at the moment to add it to the proposal we made.

So, I hope we can agree on this so far. I'll attach also the .odt file
containing this text.

-Regards,
Bjoern


Data Label Position
-------------------

For the positioning of data labels there are several default positions.
Which one is used is determined by the chart:label-position property.
When no position property is given, the value auto is assumed.

When the label position is auto, the chart should use the algorithm with
the best results for positioning depending on the chart type.

Not all chart types must support the positions inside, outside and
near-origin. In that case such a chart would jump back to auto.

[Examples]

----
<define name="labelPositions">
     <choice>
         <value>auto</value>
         <value>center</value>
         <value>north</value>
         <value>north-west</value>
         <value>west</value>
         <value>south-west</value>
         <value>south</value>
         <value>south-east</value>
         <value>east</value>
         <value>north-east</value>
         <value>inside</value>
         <value>outside</value>
         <value>near-origin</value>
     </choice>
</define>

<define name="style-chart-properties-attlist" combine="interleave">
     <optional>
         <attribute name="chart:label-position">
             <ref name="labelPositions">
         </attribute>
     </optional>
</define>
----

If the attribute chart:label-position-negative is set in addition to
chart:label-position, it is used for all labels that belong to data
points with negative values. Otherwise the position set in
chart:label-position is used for positive and negative values.

// Ed. Note (BM): What happens if only label-position-negative is set?
// Is this clear enough that it is only allowed in addition?

---
<define name="style-chart-properties-attlist" combine="interleave">
     <optional>
         <attribute name="chart:label-position-negative">
             <ref name="labelPositions">
         </attribute>
     </optional>
</define>
---



-- 
Sun Microsystems                Lars Oppermann <lars.oppermann@sun.com>
Nagelsweg 55                    Software Engineer
20097 Hamburg, Germany          Phone: +49 40 23646 959
http://www.sun.com/             Fax:   +49 40 23646 550
-----------------------------------------------------------------------
Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
D-85551 Kirchheim-Heimstetten, Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

ChartDataLabelAutoPositionRevised.odt



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