Threaded View
-
15 Nov 2012 2:21 PM #1
[4.1.3] Grouped Column Chart With One Group Has Incorrect Label
[4.1.3] Grouped Column Chart With One Group Has Incorrect Label
REQUIRED INFORMATIONExt version tested:
- Ext 4.1.3.584
- Chrome
- When a grouped column chart only has one group, the x-axis label shows up on the left side of the chart, but the tick shows up on the right.
- In 4.1.2, both the tick and the label showed up in the middle of the axis as expected.
- Go to the Grouped Bar example in 4.1.2 and 4.1.3.
- Run the code below
- It would work like 4.1.2
- Nope
Code:Ext.onReady(function() { Ext.define("MyModel", { extend:"Ext.data.Model", fields:[ "group", "y1", "y2", "y3" ] }); Ext.create("Ext.window.Window", { title:"ExtJS " + Ext.versions.core.version, width:500, height:500, layout:"fit", items:[ { xtype:"chart", store:{ proxy:{ type:"memory", reader:"json" }, model:"MyModel", data:[ { group:1, y1:1, y2:2, y3:3 } ] }, axes:[ { type:"Category", position:"bottom", fields:["group"] }, { type:"Numeric", position:"left", minimum:0, fields:["y1", "y2", "y3"] } ], series:[ { type:"column", axis:"left", xField:"group", yField:["y1", "y2", "y3"] } ] } ] }).show(); });
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-7771
in
4.2.0.


Reply With Quote