blade226
24 Sep 2012, 2:46 AM
Hello,
i want to display a chart with 3 lines.
var artikelGrid = Ext.create ('Ext.chart.Chart', {
width: 800,
height: 600,
store: mystore55,
legend: {
position: 'right'
},
axes: [
{
title: 'Anzahl',
type: 'Numeric',
position: 'left',
fields: ['xsozial','ba','sopart'],
minimum: 4500,
maximum: 6500,
minorTickSteps: 1,
majorTickSteps : 10,
grid: true,
}
,
{
title: 'Datum',
type: 'time',
position: 'bottom',
fields: ['datum'],
dateFormat:'m.Y'
}
],
series: [
{
type: 'line',
axis: 'left',
smooth: true,
xField: 'datum',
yField: 'xsozial',
tips: {
trackMouse: true,
width: 40,
height: 25,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('xsozial'));
}}
},
{
type: 'line',
axis: 'left',
xField: 'datum',
yField: 'ba',
tips: {
trackMouse: true,
width: 40,
height: 25,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('ba'));
}}
},
{
type: 'line',
axis: 'left',
xField: 'datum',
yField: 'sopart',
tips: {
trackMouse: true,
width: 40,
height: 25,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('sopart'));
}}
}
]
});
The problem is now, that 2 lines end before the third line end. So the 2 lines go to 0.
Is there a possibility, that the two lines stop before?
i want to display a chart with 3 lines.
var artikelGrid = Ext.create ('Ext.chart.Chart', {
width: 800,
height: 600,
store: mystore55,
legend: {
position: 'right'
},
axes: [
{
title: 'Anzahl',
type: 'Numeric',
position: 'left',
fields: ['xsozial','ba','sopart'],
minimum: 4500,
maximum: 6500,
minorTickSteps: 1,
majorTickSteps : 10,
grid: true,
}
,
{
title: 'Datum',
type: 'time',
position: 'bottom',
fields: ['datum'],
dateFormat:'m.Y'
}
],
series: [
{
type: 'line',
axis: 'left',
smooth: true,
xField: 'datum',
yField: 'xsozial',
tips: {
trackMouse: true,
width: 40,
height: 25,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('xsozial'));
}}
},
{
type: 'line',
axis: 'left',
xField: 'datum',
yField: 'ba',
tips: {
trackMouse: true,
width: 40,
height: 25,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('ba'));
}}
},
{
type: 'line',
axis: 'left',
xField: 'datum',
yField: 'sopart',
tips: {
trackMouse: true,
width: 40,
height: 25,
renderer: function(storeItem, item) {
this.setTitle(storeItem.get('sopart'));
}}
}
]
});
The problem is now, that 2 lines end before the third line end. So the 2 lines go to 0.
Is there a possibility, that the two lines stop before?