This is a migrated thread and some comments may be shown as answers.

How to use RadCartesianChart to draw weekly timeline?

1 Answer 58 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Piali
Top achievements
Rank 1
Piali asked on 23 Sep 2013, 06:15 PM
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

 

 

 

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 26 Sep 2013, 02:37 PM
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.
Tags
Chart
Asked by
Piali
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or