Ext.data.JsonP.Ext_chart_axis_Time({"mixins":[],"code_type":"ext_define","inheritable":false,"component":false,"meta":{},"mixedInto":[],"uses":["Ext.data.Store"],"aliases":{"axis":["time"]},"parentMixins":[],"superclasses":["Ext.Base","Ext.chart.axis.Abstract","Ext.chart.axis.Axis","Ext.chart.axis.Numeric"],"members":{"event":[],"property":[{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"$className","id":"property-S-className"},{"meta":{},"owner":"Ext.chart.axis.Numeric","tagname":"property","name":"adjustMaximumByMajorUnit","id":"property-adjustMaximumByMajorUnit"},{"meta":{},"owner":"Ext.chart.axis.Numeric","tagname":"property","name":"adjustMinimumByMajorUnit","id":"property-adjustMinimumByMajorUnit"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"configMap","id":"property-configMap"},{"meta":{},"owner":"Ext.chart.axis.Numeric","tagname":"property","name":"decimals","id":"property-decimals"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigList","id":"property-initConfigList"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigMap","id":"property-initConfigMap"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"isInstance","id":"property-isInstance"},{"meta":{},"owner":"Ext.chart.axis.Numeric","tagname":"property","name":"maximum","id":"property-maximum"},{"meta":{},"owner":"Ext.chart.axis.Numeric","tagname":"property","name":"minimum","id":"property-minimum"},{"meta":{},"owner":"Ext.chart.axis.Numeric","tagname":"property","name":"position","id":"property-position"},{"meta":{"private":true},"owner":"Ext.chart.axis.Numeric","tagname":"property","name":"scale","id":"property-scale"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"property","name":"self","id":"property-self"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.chart.axis.Abstract","tagname":"method","name":"constructor","id":"method-constructor"},{"meta":{"deprecated":{"text":"as of 4.1. Use {@link #callParent} instead."},"protected":true},"owner":"Ext.Base","tagname":"method","name":"callOverridden","id":"method-callOverridden"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"callParent","id":"method-callParent"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"configClass","id":"method-configClass"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"destroy","id":"method-destroy"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"method","name":"drawAxis","id":"method-drawAxis"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"method","name":"drawGrid","id":"method-drawGrid"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"method","name":"drawLabel","id":"method-drawLabel"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"getConfig","id":"method-getConfig"},{"meta":{},"owner":"Ext.Base","tagname":"method","name":"getInitialConfig","id":"method-getInitialConfig"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"hasConfig","id":"method-hasConfig"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"initConfig","id":"method-initConfig"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"onConfigUpdate","id":"method-onConfigUpdate"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"setConfig","id":"method-setConfig"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"method","name":"setTitle","id":"method-setTitle"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"statics","id":"method-statics"}],"css_mixin":[],"cfg":[{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"adjustEnd","id":"cfg-adjustEnd"},{"meta":{},"owner":"Ext.chart.axis.Time","tagname":"cfg","name":"constrain","id":"cfg-constrain"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"dashSize","id":"cfg-dashSize"},{"meta":{},"owner":"Ext.chart.axis.Time","tagname":"cfg","name":"dateFormat","id":"cfg-dateFormat"},{"meta":{},"owner":"Ext.chart.axis.Abstract","tagname":"cfg","name":"fields","id":"cfg-fields"},{"meta":{},"owner":"Ext.chart.axis.Time","tagname":"cfg","name":"fromDate","id":"cfg-fromDate"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"grid","id":"cfg-grid"},{"meta":{},"owner":"Ext.chart.axis.Abstract","tagname":"cfg","name":"label","id":"cfg-label"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"length","id":"cfg-length"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"majorTickSteps","id":"cfg-majorTickSteps"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"minorTickSteps","id":"cfg-minorTickSteps"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"position","id":"cfg-position"},{"meta":{},"owner":"Ext.chart.axis.Time","tagname":"cfg","name":"step","id":"cfg-step"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"title","id":"cfg-title"},{"meta":{},"owner":"Ext.chart.axis.Time","tagname":"cfg","name":"toDate","id":"cfg-toDate"},{"meta":{},"owner":"Ext.chart.axis.Axis","tagname":"cfg","name":"width","id":"cfg-width"}]},"tagname":"class","extends":"Ext.chart.axis.Numeric","html":"
Alternate names
Ext.chart.TimeAxisHierarchy
Ext.BaseExt.chart.axis.AbstractExt.chart.axis.AxisExt.chart.axis.NumericExt.chart.axis.TimeUses
Files
A type of axis whose units are measured in time values. Use this axis\nfor listing dates that you will want to group or dynamically change.\nIf you just want to display dates as categories then use the\nCategory class for axis instead.
\n\nFor example:
\n\naxes: [{\n type: 'Time',\n position: 'bottom',\n fields: 'date',\n title: 'Day',\n dateFormat: 'M d',\n\n constrain: true,\n fromDate: new Date('1/1/11'),\n toDate: new Date('1/7/11')\n}]\n
\n\nIn this example we're creating a time axis that has as title Day.\nThe field the axis is bound to is date
.\nThe date format to use to display the text for the axis labels is M d
\nwhich is a three letter month abbreviation followed by the day number.\nThe time axis will show values for dates between fromDate
and toDate
.\nSince constrain
is set to true all other values for other dates not between\nthe fromDate and toDate will not be displayed.
Whether to adjust the label at the end of the axis.
\nDefaults to: true
If true, the values of the chart will be rendered only if they belong between the fromDate and toDate.\nIf false, the time axis will adapt to the new values by adding/removing steps.
\nDefaults to: false
Overrides: Ext.chart.axis.Numeric.constrain
Indicates the format the date will be rendered on.\nFor example: 'M d' will render the dates as 'Jan 30', etc.\nFor a list of possible format strings see Date
\nDefaults to: false
The fields of model to bind to this axis.
\n\nFor example if you have a data set of lap times per car, each having the fields:\n'carName'
, 'avgSpeed'
, 'maxSpeed'
. Then you might want to show the data on chart\nwith ['carName']
on Name axis and ['avgSpeed', 'maxSpeed']
on Speed axis.
The grid configuration enables you to set a background grid for an axis.\nIf set to true on a vertical axis, vertical lines will be drawn.\nIf set to true on a horizontal axis, horizontal lines will be drawn.\nIf both are set, a proper grid with horizontal and vertical lines will be drawn.
\n\nYou can set specific options for the grid configuration for odd and/or even lines/rows.\nSince the rows being drawn are rectangle sprites, you can set to an odd or even property\nall styles that apply to Ext.draw.Sprite. For more information on all the style\nproperties you can set please take a look at Ext.draw.Sprite. Some useful style properties are opacity
, fill
, stroke
, stroke-width
, etc.
The possible values for a grid option are then true, false, or an object with { odd, even }
properties\nwhere each property contains a sprite style descriptor object that is defined in Ext.draw.Sprite.
For example:
\n\naxes: [{\n type: 'Numeric',\n position: 'left',\n fields: ['data1', 'data2', 'data3'],\n title: 'Number of Hits',\n grid: {\n odd: {\n opacity: 1,\n fill: '#ddd',\n stroke: '#bbb',\n 'stroke-width': 1\n }\n }\n}, {\n type: 'Category',\n position: 'bottom',\n fields: ['name'],\n title: 'Month of the Year',\n grid: true\n}]\n
\nIf minimum
and maximum
are specified it forces the number of major ticks to the specified value.\nIf a number of major ticks is forced, it wont search for pretty numbers at the ticks.
The number of small ticks between two major ticks. Default is zero.
\nWhere to set the axis. Available options are left
, bottom
, right
, top
. Default's bottom
.
Defaults to: "bottom"
An array with two components: The first is the unit of the step (day, month, year, etc). The second one is the number of units for the step (1, 2, etc.).
\n\nDefaults to: [Ext.Date.DAY, 1].
\nIndicates whether to extend maximum beyond data's maximum to the nearest\nmajorUnit.
\nDefaults to: false
Indicates whether to extend the minimum beyond data's minimum to the\nnearest majorUnit.
\nDefaults to: false
The number of decimals to round the value to.
\nDefaults to: 2
The maximum value drawn by the axis. If not set explicitly, the axis\nmaximum will be calculated automatically.
\nThe minimum value drawn by the axis. If not set explicitly, the axis\nminimum will be calculated automatically.
\nIndicates the position of the axis relative to the chart
\nDefaults to: "left"
The scaling algorithm to use on this axis. May be \"linear\" or\n\"logarithmic\". Currently only linear scale is implemented.
\nDefaults to: "linear"
Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self
is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison
Ext.define('My.Cat', {\n statics: {\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n alert(this.self.speciesName); // dependent on 'this'\n },\n\n clone: function() {\n return new this.self();\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\n
\nCall the original method that was previously overridden with override
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\n This method has been deprecated
\nas of 4.1. Use callParent instead.
\n\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callOverridden(arguments)
Returns the result of calling the overridden method
\nCall the \"parent\" method of the current method. That is the method previously\noverridden by derivation or by an override (see Ext.define).
\n\n Ext.define('My.Base', {\n constructor: function (x) {\n this.x = x;\n },\n\n statics: {\n method: function (x) {\n return x;\n }\n }\n });\n\n Ext.define('My.Derived', {\n extend: 'My.Base',\n\n constructor: function () {\n this.callParent([21]);\n }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x); // alerts 21\n
\n\nThis can be used with an override as follows:
\n\n Ext.define('My.DerivedOverride', {\n override: 'My.Derived',\n\n constructor: function (x) {\n this.callParent([x*2]); // calls original My.Derived constructor\n }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x); // now alerts 42\n
\n\nThis also works with static methods.
\n\n Ext.define('My.Derived2', {\n extend: 'My.Base',\n\n statics: {\n method: function (x) {\n return this.callParent([x*2]); // calls My.Base.method\n }\n }\n });\n\n alert(My.Base.method(10); // alerts 10\n alert(My.Derived2.method(10); // alerts 20\n
\n\nLastly, it also works with overridden static methods.
\n\n Ext.define('My.Derived2Override', {\n override: 'My.Derived2',\n\n statics: {\n method: function (x) {\n return this.callParent([x*2]); // calls My.Derived2.method\n }\n }\n });\n\n alert(My.Derived2.method(10); // now alerts 40\n
\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callParent(arguments)
Returns the result of calling the parent method
\nRenders an horizontal and/or vertical grid into the Surface.
\nInitialize configuration for this class. a typical example:
\n\nExt.define('My.awesome.Class', {\n // The default config\n config: {\n name: 'Awesome',\n isAwesome: true\n },\n\n constructor: function(config) {\n this.initConfig(config);\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\nthis
\nGet the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics()
is scope-independent and it always returns the class from which it was called, regardless of what\nthis
points to during run-time
Ext.define('My.Cat', {\n statics: {\n totalCreated: 0,\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n var statics = this.statics();\n\n alert(statics.speciesName); // always equals to 'Cat' no matter what 'this' refers to\n // equivalent to: My.Cat.speciesName\n\n alert(this.self.speciesName); // dependent on 'this'\n\n statics.totalCreated++;\n },\n\n clone: function() {\n var cloned = new this.self; // dependent on 'this'\n\n cloned.groupName = this.statics().speciesName; // equivalent to: My.Cat.speciesName\n\n return cloned;\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n },\n\n constructor: function() {\n this.callParent();\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\nalert(clone.groupName); // alerts 'Cat'\n\nalert(My.Cat.totalCreated); // alerts 3\n
\nAdd methods / properties to the prototype of this class.
\n\nExt.define('My.awesome.Cat', {\n constructor: function() {\n ...\n }\n});\n\n My.awesome.Cat.addMembers({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\nAdd / override static properties of this class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.addStatics({\n someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'\n method1: function() { ... }, // My.cool.Class.method1 = function() { ... };\n method2: function() { ... } // My.cool.Class.method2 = function() { ... };\n});\n
\nthis
\nBorrow another class' members to the prototype of this class.
\n\nExt.define('Bank', {\n money: '$$$',\n printMoney: function() {\n alert('$$$$$$$');\n }\n});\n\nExt.define('Thief', {\n ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\nThe class to borrow members from
\nThe names of the members to borrow
\nthis
\nCreate a new instance of this Class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n
\n\nAll parameters are passed to the constructor of the class.
\nthe created instance.
\nCreate aliases for existing prototype methods. Example:
\n\nExt.define('My.cool.Class', {\n method1: function() { ... },\n method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n method3: 'method1',\n method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\nThe new method name, or an object to set multiple aliases. See\nflexSetter
\nThe original method name
\nGet the current class' name in string format.
\n\nExt.define('My.cool.Class', {\n constructor: function() {\n alert(this.self.getName()); // alerts 'My.cool.Class'\n }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\nclassName
\nAdds members to class.
\nThis method has been deprecated since 4.1
\nUse addMembers instead.
\n\nOverride members of this class. Overridden methods can be invoked via\ncallParent.
\n\nExt.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callParent(arguments);\n\n alert(\"Meeeeoooowwww\");\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n
\n\nAs of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:
\n\nExt.define('My.CatOverride', {\n override: 'My.Cat',\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n this.callParent(arguments);\n\n alert(\"Meeeeoooowwww\");\n }\n});\n
\n\nThe above accomplishes the same result but can be managed by the Ext.Loader\nwhich can properly order the override and its target class and the build process\ncan determine whether the override is needed based on the required state of the\ntarget class (My.Cat).
\nThis method has been deprecated since 4.1.0
\nUse Ext.define instead
\n\nThe properties to add to this class. This should be\nspecified as an object literal containing one or more properties.
\nthis class
\n