PDA

View Full Version : [FIXED] Line chart: tips do not toggle with series



keltnerj
27 Feb 2011, 9:48 AM
Tips for a line chart series will show after the series is toggled off.

http://www.createorreplace.com/images/ghostlinecharttip.jpg

Code used to demonstrate the issue:


Ext.require('Ext.chart.*');
Ext.require(['Ext.Window', 'Ext.fx.target.Sprite', 'Ext.layout.container.Fit']);

Ext.onReady(function () {
var store1 = new Ext.data.JsonStore({
fields: ['name', 'data1'],
data: [
{name: 'Jan', data1: 41},
{name: 'Feb', data1: 34},
{name: 'Mar', data1: 72},
{name: 'Apr', data1: 75}
]
});

var win = Ext.create('Ext.Window', {
width: 800,
height: 600,
hidden: false,
title: 'Line Chart',
renderTo: Ext.getBody(),
layout: 'fit',
items: {
xtype: 'chart',
store: store1,
theme: 'Category1',
legend: {
position: 'right'
},
axes: [{
type: 'Numeric',
minimum: 0,
position: 'left',
fields: ['data1'],
title: 'Hits',
},{
type: 'Category',
position: 'bottom',
fields: ['name'],
title: 'Month'
}],
series: [{
type: 'line',
axis: 'left',
xField: 'name',
yField: 'data1',
tips: {
trackMouse: true,
width: 65,
height: 28,
renderer: function(storeItem, item) {
this.setTitle(item.value[1]);
}
}
}]
}
});
});

Jamie Avins
28 Feb 2011, 8:11 AM
Fair enough, we'll get that addressed.

philogb
3 Mar 2011, 5:55 PM
This has already been fixed. The fix will be out with the next release. Thank you very much for pointing this out :)