Hi,
having a strange problem with a chart in sencha touch 2.1.
I'm using the 2.0 charts beta, a simple window i created using sencha architect, for test purposes.
It consists of a numericAxis and an timeAxis like so:
Code:
xtype: 'chart',
id: 'chart',
store: 'valuesLogStore',
axes: [
{
type: 'time',
fields: [
'data_ts'
]
},
{
type: 'numeric',
fields: [
'data_value'
],
grid: {
odd: {
fill: '#e8e8e8'
}
},
position: 'left'
}
],
series: [
{
type: 'line',
labelField: 'data_key',
style: {
smooth: true,
stroke: 'rgb(0,200,0)',
fill: 'rgba(0,200,0,0.3)'
},
xField: 'data_ts',
yField: 'data_value'
}
],
interactions: [
{
type: 'panzoom'
}
the data looks like this:
Code:
{
"key": 824725,
"data_key": 20203,
"data_ts": 1359466618,
"data_value": 99.0,
"set_by": "App"
},
{
"key": 197,
"data_key": 20203,
"data_ts": 1354546808,
"data_value": 30.0,
"set_by": "App"
},
however, as you can see, there is no X axis:
strange.jpg
when i change the position of the axis tot Top, this happens:
strange2.jpg
so, something is happening. Still not what i wanted though.
I just want the date on the bottom.
Anyone experienced a same problem, or knows how to fix this? This chart is the only item in its container, wich is set to 'fit'.
Regards,
Robert