1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    10
    Vote Rating
    0
    Answers
    1
    slrobertson1 is on a distinguished road

      0  

    Default Unanswered: fromDate and toDate on Time Axis don't limit store data displayed

    Unanswered: fromDate and toDate on Time Axis don't limit store data displayed


    I may be assuming wrong, but setting fromDate, toDate and constrain = true on a Time axis don't seem to limit the range of records graphed from a store. Should this work? My store records each have a Date field and I want to graph a subset range of values from the store. How can this be accomplished?

    For reference, here is my Axis config:

    Code:
                        {
                            type: 'Time',
                            position: 'bottom',
                            fields: ['localDate'],
                            title: 'Day',
                            dateFormat: 'M d',
                            fromDate: new Date('3/1/12'),
                            toDate: new Date('4/1/12'),
                            constrain: true
                        }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,631
    Vote Rating
    435
    Answers
    3106
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    With constrain true it *should* only show the records within the from/toDate configs. We are still in beta so expect a somewhat bumpy ride as we work through bugs.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

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

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

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