PDA

View Full Version : [FIXED] [4.1.3] Grouped Column Chart With One Group Has Incorrect Label



ZachG
15 Nov 2012, 2:21 PM
REQUIRED INFORMATIONExt version tested:

Ext 4.1.3.584
Browser versions tested against:

Chrome
Description:

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.
Steps to reproduce the problem:

Go to the Grouped Bar example in 4.1.2 and 4.1.3.
Run the code below
The result that was expected:

It would work like 4.1.2
The result that occurs instead:

Nope
Test Case:


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();
});

mitchellsimoens
16 Nov 2012, 11:11 AM
Thanks for the report! I have opened a bug in our bug tracker.