Lives: 30

Default Axis Annotation Schemes in Silverlight Charts

Posted Thu Dec 10, 2009 @ 8:05 AM

One of the most sophisticated and exciting features of the Silverlight Charting control released with Web.UI 2009.3 is the Axis Annotation mechanism that prevents overlapping of long labels. The mechanism consists of an algorithm that selects the best possible Axis Annotation scheme by going through a list of available schemes.  Each subsequent scheme in the list contains fewer annotations.  The algorithm selects the first scheme from the list that does not cause any annotations to overlap.  This ensures that the most descriptive and verbose annotation scheme for the given chart is selected.  The mechanism is especially useful when it comes to charts that use DateTime on the X axis.  Since 25 annotations schemes are avalible for DateTime axes, the programmer can just plug in the data without worrying how it will be annotated.

If you are interested how to select a specific Axis Annotation scheme or how to customize its details, take a look at this tutorial.

Below is a list of all available annotation schemes, in the order in which they are selected.  A picture of each annotation scheme in action is followed by the code that defines the annotation in case you want to reuse it to explicitly create a similar annotation scheme.

Strings - Horizontal

<ch:AxisAnnotationScheme Id="String.01" Orientation="Vertical" DimensionKind="String">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel Angle="0"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

Strings - Vertical

<ch:AxisAnnotationScheme Id="String.02" Orientation="Vertical" DimensionKind="String">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel Angle="90"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Minutes, merged on days


<ch:AxisAnnotationScheme Id="DT.H.Min.01" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="t"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="D" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>


DateTime - Minutes, merged on days, 90 degree angle

<ch:AxisAnnotationScheme Id="DT.H.Min.02" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="t" Angle="90"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="D" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>


DateTime - Minutes, every second minute, merged on days, 90 degree angle

<ch:AxisAnnotationScheme Id="DT.H.Min.03" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="t" Angle="90" />
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="D" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute" Step="2"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>


DateTime - Minutes, every fifth minute, merged on days, 90 degree angle

<ch:AxisAnnotationScheme Id="DT.H.Min.04" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="t" Angle="90" />
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="D" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute" Step="5"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>


DateTime - Minutes, every tenth minute, merged on days, 90 degree angle


<ch:AxisAnnotationScheme Id="DT.H.Min.05" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="t" Angle="90" />
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="D" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute" Step="10"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute" Step="5"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>


DateTime - Minutes, every fifteenth minute, merged on days, 90 degree angle

<ch:AxisAnnotationScheme Id="DT.H.Min.06" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="t" Angle="90" />
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="D" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute" Step="15"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute" Step="5"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>

 

DateTime - Minutes, every thirtieth minute, merged on days, 90 degree angle

<ch:AxisAnnotationScheme Id="DT.H.Min.07" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="t" Angle="90" />
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="D" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute" Step="30"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute" Step="10"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Minute"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>

 

DateTime - Hours, every hour, merged on days

<ch:AxisAnnotationScheme Id="DT.H.H.01" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="HH"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="D" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>

 

DateTime - Hours, every second hour, merged on days

<ch:AxisAnnotationScheme Id="DT.H.H.02" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="HH"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="d" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour" DisplayValues="0,2,4,6,8,10,12,14,16,18,20,22"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour" />
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>

 

DateTime - Hours, every fourth hour, merged on days

<ch:AxisAnnotationScheme Id="DT.H.H.03" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="HH"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="d" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour" DisplayValues="0,4,8,12,16,20"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour" DisplayValues="0,4,8,12,16,20"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>

 

DateTime - Hours, every sixth hour, merged on days

<ch:AxisAnnotationScheme Id="DT.H.H.04" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="HH"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Day" FormattingString="d" />
</ch:AxisAnnotation.Levels>
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour" DisplayValues="0,6,12,18"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour" DisplayValues="0,6,12,18"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Hour"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
</ch:AxisAnnotationScheme>


DateTime - Days, every day, merged on months

<ch:AxisAnnotationScheme Id="DT.H.D.01" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" />
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="dd"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Month" FormattingString="y"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Days, odd days including 31st, merged on months

<ch:AxisAnnotationScheme Id="DT.H.D.01a" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" DisplayValues="1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" />
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="dd"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Month" FormattingString="y"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Days, odd days excluding 31st, merged on months

<ch:AxisAnnotationScheme Id="DT.H.D.01b" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" DisplayValues="1,3,5,7,9,11,13,15,17,19,21,23,25,27,29"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" />
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="dd"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Month" FormattingString="y"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Days, every fifth day, merged on months

<ch:AxisAnnotationScheme Id="DT.H.D.02" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" DisplayValues="1,5,10,15,20,25"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" DisplayValues="1,5,10,15,20,25"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="dd"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Month" FormattingString="y"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Days, every tenth day, merged on months

<ch:AxisAnnotationScheme Id="DT.H.D.03" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" DisplayValues="1,10,20"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" DisplayValues="1,10,20"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="dd"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Month" FormattingString="y"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Month, every month, merged on years

<ch:AxisAnnotationScheme Id="DT.H.M.01" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Month" />
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Month"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" DisplayValues="1,10,20"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="MMM"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Year" FormattingString="yyyy" />
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Month, vertical label, every month, merged on years

<ch:AxisAnnotationScheme Id="DT.H.M.01v" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Month" />
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Month"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Day" DisplayValues="1,10,20"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="MMM" Angle="90"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Year" FormattingString="yyyy" />
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Month, every third month, merged on years

<ch:AxisAnnotationScheme Id="DT.H.M.02" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Month" DisplayValues="1,4,7,10"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Month" DisplayValues="1,4,7,10"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Month"></ch:DateTimeCoordinates>
</ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="MMM"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Year" FormattingString="yyyy" />
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Month, vertical label, every third month, merged on years

<ch:AxisAnnotationScheme Id="DT.H.M.03" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Month" DisplayValues="1,4,7,10"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Month" DisplayValues="1,4,7,10"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Month"/>
</ch:AxisAnnotation.MinorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel FormattingString="MMM" Angle="90"/>
<ch:AxisAnnotationLevel MergeCellsOnEqualProperty="Year" FormattingString="yyyy" />
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Year, every year

<ch:AxisAnnotationScheme Id="DT.H.Y.01" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Year" />
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Year"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel />
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Year, vertical orientation, every year

<ch:AxisAnnotationScheme Id="DT.H.Y.02" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Year" />
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Year"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel Angle="90"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Year, vertical orientation, every second year

<ch:AxisAnnotationScheme Id="DT.H.Y.03" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Year" Step="2"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Year"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel Angle="90"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Year, vertical orientation, every fifth year

<ch:AxisAnnotationScheme Id="DT.H.Y.04" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Year" Step="5"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Year"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel Angle="90"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

DateTime - Year, vertical orientation, every tenth year

<ch:AxisAnnotationScheme Id="DT.H.Y.04" DimensionKind="DateTime" Orientation="Horizontal">
<ch:AxisAnnotation.LabelCoordinates>
<ch:DateTimeCoordinates DateLevel="Year" Step="10"/>
</ch:AxisAnnotation.LabelCoordinates>
<ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:DateTimeCoordinates DateLevel="Year"/>
</ch:AxisAnnotation.MajorGridLineCoordinates>
<ch:AxisAnnotation.Levels>
<ch:AxisAnnotationLevel Angle="90"/>
</ch:AxisAnnotation.Levels>
</ch:AxisAnnotationScheme>

 

Posted to Filip Karadzic by filipK

Posted on Thu Dec 10, 2009 @ 8:05 AM

Filed under: , , , , ,

Comments

There are currently no comments for this blog post.

Anonymous comments are not allowed. Click here to log in or create an account.

Copyright © 2010 ComponentArt, Inc. All rights reserved.