PDA

View Full Version : issue on diplay one set of BARS in a chart with Numeric and Categoric Axis



blopes
16 Sep 2013, 12:57 PM
Hi all,

The problem happens only if I want to have one set bars, that means, for example if define two columns for the that set, it doesn't start on 0 but on the value of the lowest bar...

If I have 2 or more sets it will work fine.

Please have a look on the attached screenshots, the first with the problem and the second is OK.

Thank you.

Bruno

Gary Schlosberg
16 Sep 2013, 1:17 PM
Did you try setting minimum (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.chart.axis.Numeric-cfg-minimum) to zero?

Otherwise, if you think this is a bug, please post a test case which reproduces the issue. Thanks.

blopes
16 Sep 2013, 1:44 PM
Hi Gary,

Yes doesn't affect anything set minimum to 0.

Here is My Chart


{
xtype: 'chart',
cls: 'chartAxesLabelTitle',
hideMode: 'offsets',
id: 'fcColChart',
animate: true,
store: 'chartDataLeftStore',
axes: [
{
type: 'Category',
fields: [
'y'
],
label: {
fill: '#FFF',
color: '#FFF',
font: '11px Verdana',
rotate: {
degrees: 0,
x: 0
}
},
adjustEnd: false,
dashSize: 0,
minorTickSteps: 0,
title: 'Category Axis',
position: 'bottom'
},
{
type: 'Numeric',
fields: [
'x1',
'x2',
'x3'
],
label: {
fill: '#FFF',
color: '#FFF',
font: '11px Verdana',
rotate: {
degrees: 0,
x: 0
}
},
dashSize: 5,
minorTickSteps: 5,
position: 'left',
title: 'Numeric Axis',
constrain: false,
adjustMinimumByMajorUnit: true,
decimals: 0,
minimum: 0
}
],
series: [
{
type: 'column',
highlight: 'color:white;',
tips: {
trackMouse: true,
renderer: function(storeItem, item) {
this.update(storeItem.get("x"+item.yField.substr(1,2)));
}
},
xField: 'y',
yField: [
'x1',
'x2',
'x3'
]
}
],
legend: {
boxFill: '#17385b',
labelColor: '#FFF',
position: 'right'
}
}


Thank you.

Bruno