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
22 Ext.define('Ext.chart.axis.Abstract', {
24 /* Begin Definitions */
26 requires: ['Ext.chart.Chart'],
30 constructor: function(config) {
31 config = config || {};
34 pos = config.position || 'left';
36 pos = pos.charAt(0).toUpperCase() + pos.substring(1);
37 //axisLabel(Top|Bottom|Right|Left)Style
38 config.label = Ext.apply(config['axisLabel' + pos + 'Style'] || {}, config.label || {});
39 config.axisTitleStyle = Ext.apply(config['axisTitle' + pos + 'Style'] || {}, config.labelTitle || {});
40 Ext.apply(me, config);
41 me.fields = [].concat(me.fields);
45 me.labelGroup = me.chart.surface.getGroup(me.axisId + "-labels");
57 return this.axisId || (this.axisId = Ext.id(null, 'ext-axis-'));
61 Called to process a view i.e to make aggregation and filtering over
62 a store creating a substore to be used to render the axis. Since many axes
63 may do different things on the data and we want the final result of all these
64 operations to be rendered we need to call processView on all axes before drawing
67 processView: Ext.emptyFn,
69 drawAxis: Ext.emptyFn,
70 addDisplayAndLabels: Ext.emptyFn