4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-chart-axis-Abstract'>/**
19 </span> * @class Ext.chart.axis.Abstract
20 * Base class for all axis classes.
22 Ext.define('Ext.chart.axis.Abstract', {
24 /* Begin Definitions */
26 requires: ['Ext.chart.Chart'],
30 <span id='Ext-chart-axis-Abstract-method-constructor'> /**
31 </span> * Creates new Axis.
32 * @param {Object} config (optional) Config options.
34 constructor: function(config) {
35 config = config || {};
38 pos = config.position || 'left';
40 pos = pos.charAt(0).toUpperCase() + pos.substring(1);
41 //axisLabel(Top|Bottom|Right|Left)Style
42 config.label = Ext.apply(config['axisLabel' + pos + 'Style'] || {}, config.label || {});
43 config.axisTitleStyle = Ext.apply(config['axisTitle' + pos + 'Style'] || {}, config.labelTitle || {});
44 Ext.apply(me, config);
45 me.fields = [].concat(me.fields);
49 me.labelGroup = me.chart.surface.getGroup(me.axisId + "-labels");
61 return this.axisId || (this.axisId = Ext.id(null, 'ext-axis-'));
65 Called to process a view i.e to make aggregation and filtering over
66 a store creating a substore to be used to render the axis. Since many axes
67 may do different things on the data and we want the final result of all these
68 operations to be rendered we need to call processView on all axes before drawing
71 processView: Ext.emptyFn,
73 drawAxis: Ext.emptyFn,
74 addDisplayAndLabels: Ext.emptyFn