Results 1 to 2 of 2

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

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    10
    Answers
    1
    Vote Rating
    0
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,061
    Answers
    3976
    Vote Rating
    1388
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •