-
19 Apr 2012 7:18 AM #1
Scatter & Line Axes not aligning to X-axis properly.
Scatter & Line Axes not aligning to X-axis properly.
Produces:Code:axes: [{ type: 'Numeric', position: 'left', fields: ['Actual', '7 Day Velocity', 'Average', 'Stock'], grid: { odd: { opacity: 1, fill: '#eee', stroke: '#ccc', 'stroke-width': 0.5 } } }, { type: 'Category', position: 'bottom', fields: ['period'], title: 'Demand' }], series: [{ type: 'line', highlight: false, axis: 'left', xField: 'period', yField: 'Actual', markerConfig: { type: 'cross', size: 4, radius: 4, 'stroke-width': 0 } }, { type: 'line', highlight: false, axis: 'left', xField: 'period', yField: '7 Day Velocity', markerConfig: { type: 'cross', size: 4, radius: 4, 'stroke-width': 0 } }, { type: 'line', highlight: false, showMarkers: false, axis: 'left', xField: 'period', yField: 'Average', }, { type: 'scatter', markerConfig: { type: 'cross', radius: 5, size: 5 }, axis: 'left', xField: 'period', yField: 'Stock' }
Untitled-1.png
If I set the type from 'Category' to 'Numeric' for my bottom axis, that produces:
Untitled-2.png
This is the data I'm using:
Code:Ext.create('Ext.data.ArrayStore', { autoDestroy: true, idIndex: 0, fields: [ 'period', 'Actual', '7 Day Velocity', 'Average', 'Stock' ], data: [[1,4,0,0,null],[2,3,-1,0,null],[3,4,1,0,null],[4,4,0,0,54]] });
-
19 Apr 2012 12:05 PM #2
Can I verify the exact version of ExtJS you are using?
Regards,
Scott.
-
19 Apr 2012 12:07 PM #3
4.0.7
-
19 Apr 2012 12:24 PM #4
That is what I suspected. Please try 4.1. There were numerous fixes regarding issues such as this.
Scott.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote