LineSeriesDefinition: Plot multiple point in one step of AxisX

4 posts, 1 answers
  1. Dhaval patel
    Dhaval patel avatar
    19 posts
    Member since:
    Dec 2009

    Posted 25 Oct 2011 Link to this post

    Hello,

    In my LineSeriesDefinition there are two SeriesMapping(High,Low).
    I plot DateTime on AxisX.
    But, in my data there are up-to 4 records for different time(Hours) per date.
    So, i have to plot 4 points(based on time) in one step of Date.

    i have set property of telerik:ChartArea.AxisX in DefaultView as:

    But it will shows:
    in minimize mode:
     
    1.I don't want group of 1Week.
    and it is solved in maximize mode.

    In Maximize mode:

    2. Series is started from half of the first Step area of the axis-X. In above snap for the Date 1st Oct it start from the Half.
    I want to start from immediate of Axis-Y. also date must Between MinorTick Line.
    Is it possible to solve it?

    Thanks in advance.
    Regards
    Dhaval Patel
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 28 Oct 2011 Link to this post

    Hello Dhaval,

    To be able to have a Step on the XAxis different from 7 days (one week) you should provide your own Axis Range. For the purpose - turn off the AutoRange property and supply MinValue, MaxValue and Step for the Axis. You can find more information about this here.
    As for the position of the AxisLabels - I'm not sure that I understood what you want to achieve. Could you please describe your requirements in more detail? By default the AxisX Labels are displayed Between the MajorTicks. Currently RadChart allows you to modify the layout of the XAxis to better fit the different chart types in the chart area. This is demonstrated in our help topic.

    Best wishes,
    Evgenia
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Dhaval patel
    Dhaval patel avatar
    19 posts
    Member since:
    Dec 2009

    Posted 28 Oct 2011 Link to this post

    Hello,
    Thanks for reply

    My first problem is solved.

    In my second problem I wanted series should be display like LayoutMode.Normal, but Axis label(Date) should be display like LayoutMode.Between.

    LayoutMode.Normal: series should started from Y-axis 
      
     
    LayoutMode.Between - Date should be between


    So finally it should be display like:

    Thanks
  5. Answer
    Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 02 Nov 2011 Link to this post

    Hi Dhaval,

    You can keep the LayoutMode property set to Normal and customize the Axis Items Labels style so that they have either a HorizontalAlignment set to Right or bigger Left Margin. You can find more information about Styling the Axis Item Label here.

    Greetings,
    Evgenia
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top