How to use RadCartesianChart to draw weekly timeline?

2 posts, 0 answers
  1. Piali
    Piali avatar
    5 posts
    Member since:
    Jan 2008

    Posted 23 Sep 2013 Link to this post

    Hi,

    I am using the RadCartesianChart control to draw a daily timeline the xaml for which looks like:

    <chart:RadCartesianChart Name="radChart" Zoom="1,1" MaxZoom="20,1" Height="80" Margin="0,20">

    <chart:RadCartesianChart.Grid>

    <chart:CartesianChartGrid MajorLinesVisibility="X" Style="{StaticResource gridStyleDashed}"/>

    </chart:RadCartesianChart.Grid>

    <chart:RadCartesianChart.Behaviors>

    <chart:ChartPanAndZoomBehavior ZoomMode="Horizontal" PanMode="Horizontal"/>

    </chart:RadCartesianChart.Behaviors>

    <chart:RadCartesianChart.HorizontalAxis>

    <chart:DateTimeContinuousAxis MajorStep="3"

    MajorStepUnit="Hour"

    LabelFormat="HH:mm"

    PlotMode="OnTicks"

    Style="{StaticResource timeLineAxisStyleWithTicks}">

    <chart:DateTimeContinuousAxis.LabelStyle>

    <Style TargetType="TextBlock" BasedOn="{StaticResource textBlockStyle}">

    <Setter Property="Width" Value="50"/>

    </Style>

    </chart:DateTimeContinuousAxis.LabelStyle>

    </chart:DateTimeContinuousAxis>

    </chart:RadCartesianChart.HorizontalAxis>

    <chart:RadCartesianChart.VerticalAxis>

    <chart:LinearAxis Minimum="0"

    Maximum="10"

    LineStroke="Transparent"

    ShowLabels="False"

    Style="{StaticResource linearAxisStyle}"/>

    </chart:RadCartesianChart.VerticalAxis>

    </chart:RadCartesianChart>

    Also I have code behind that creates the barseries and adds the datapoints progrmatically. I am to generate a timeline which look like the image attached.
    I want to use the same concept to create weekly timelines where the granularity if by day but within the day the granularity is in minutes. Can you provide some guidance on how to achieve this. So basically I want to repeated daily timelines like the one I have attached but for a week, but compacted since I want to view the whole week.

    Thanks,
    Piali

     

     

     

  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 26 Sep 2013 Link to this post

    Hi Piali,

    Thanks for writing and for the provided details.

    Could you please elaborate a bit further how exactly would you like your Cartesian Chart to appear? If you could send us a sketch or a screenshot that would make it a lot easier for us to evaluate the scenario and see how to assist you.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
Back to Top