Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
265
How can I get all the titles to display on xamTimeline?
posted

  How can I get all my 25 titles to show on the timeline? As you can see from below screenshot only 3 titles are shown. I need all 25 titles represented by each dot to show. How can I accomplish this?

Here is my code:

<igtl:XamTimeline x:Name="xamTimeline" Width="900" Height="250" Title="Milestone" >

                    <igtl:XamTimeline.Axis>

                        <igtl:NumericTimeAxis Minimum="1" Maximum="27" AutoRange="True" ShowLabels="True" Unit="1" />

                    </igtl:XamTimeline.Axis>

                    <igtl:XamTimeline.PreviewAxis>

                        <igtl:PreviewAxis ShowLabels="True" />

                    </igtl:XamTimeline.PreviewAxis>                   

</igtl:XamTimeline>

 

       Code behind:

milestoneClubs = DataUtil.MilesotneClubs;

 

            // xamTimeline data binding

            NumericTimeSeries series = new NumericTimeSeries();

            series.DataSource = milestoneClubs;

            // data mapping

            series.DataMapping = "Time=ID;Title=Note;Details=Note;";       

            this.xamTimeline.Series.Add(series);

Parents
No Data
Reply
  • 12875
    posted

    Hi,

     

    I don’t see your screenshot but I do see that you have set the Minimum and Maximum property of the NumericTimeAxis which is normally used to define the axis range.

     

    However you also have the AutoRange set to true which would cause the chart to determine the minimum and maximum range.

     

    If you can post your screenshot I’ll try to give you some specific assistance but the chart will display as many of the labels as possible for the available space by default.

     

    By setting the AutoRange to False and adding 5 numericTimeEntry items to the series between 3 and 15 I was able see all of the very simple labels that I was working with.

     

    Depending on the Titles of the numericTimeEntry in your series, more or less space may be necessary to display the labels.  You might consider increasing the height of the timeline or possibly re-template the labels style.

Children