Hi Guys,
I have created a line chart with Numeric axis. When my Numeric axis value less than 10 it is splits to decimal value and I have to display some "Count" values in Numeric axis so it is absolutely nonsense. So I am finding a solution to avoid this decimal rendering for my chart. Please help me to resolve this issue. Or is it a Ext 4.1 native bug?
Here is my graph config
Code:
Ext.applyIf(me, {
axes: [
{
type: 'Category',
fields: [
'enrolled_date'
],
label: {
renderer: Ext.util.Format.dateRenderer('Y-m-d')
},
position: 'bottom',
title: 'Registered Date',
calculateCategoryCount: false
},
{
type: 'Numeric',
fields: [
'count'
],
position: 'left',
title: 'No of Mothers',
minimum: 0
}
],
series: [
{
type: 'line',
xField: 'enrolled_date',
yField: [
'count'
],
fill: true,
smooth: 3
}
]
});
Also my JSON data is as follows
Code:
[{"enrolled_date":"2012-04-21 00:00:00","count":"1"},{"enrolled_date":"2012-04-29 00:00:00","count":"5"},{"enrolled_date":"2012-04-30 00:00:00","count":"1"},{"enrolled_date":"2012-05-03 00:00:00","count":"1"}]
And my graph screen shot
graph.jpg
thanks in advance,
Jini