1. #1
    Sencha User
    Join Date
    Feb 2014
    Posts
    8
    Vote Rating
    0
    svennergr is on a distinguished road

      0  

    Default Unanswered: Some trouble with chart axis

    Unanswered: Some trouble with chart axis


    Hey folks,

    I need your help again.

    I have a store, that holds data from the past 10 minutes. Every 2nd second I am adding data to the store, and removing the oldest one. So the data stores 300 datapairs.

    So now, I want to draw a chart representing this data. One data pair is "height" and one is a "time"-value, I will increment on every update. So each datapair has its "time" as id.

    I want to display my time on the x-axis. But I need a static "label" there. Just holding "-10min" and in the middle "-5min".

    How is my approach?

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,865
    Answers
    220
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3
    Sencha User
    Join Date
    Feb 2014
    Posts
    8
    Vote Rating
    0
    svennergr is on a distinguished road

      0  

    Default


    Yea fine. But I think, I cant handle these attributes since I have dynamically updated items. My store starts with:
    Code:
     [{height: 115, time: 0},{height: 116, time: 1}, ... ,{height:113, time: 299}]
    When I add something now, I will remove the oldest object. In this case it is {height: 115, time: 0} and add an {height: 112, time: 300} at the end of the store. So my max-value of time changes!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar