PDA

View Full Version : Colummchart change displayName



gabbay
4 May 2010, 9:20 AM
Hi guys.

I did a chart with agrouped columms and works well. The problem is when I change month on the combobox the values changes and need to update the labels from right side of the chart with the name of top 5 salers.

How can I do this???

[CODE]/*!
* Ext JS Library 3.0
* Copyright(c) 2006-2009 Ext JS, LLC
* [email protected]
* http://www.extjs.com/license
*/
// Application instance for showing user-feedback messages.
var App = new Ext.App({});

Ext.onReady(function() {
Ext.QuickTips.init();

new Ext.Panel({
renderTo: 'painelRelatorios',
title: 'Relatório de vendas por site',
bodyBorder: true, // useful for accordion containers since the inner panels have borders already
bodyStyle: 'padding:5px', // if all accordion panels are collapsed, this looks better in this layout
defaults: {bodyStyle: 'padding:2px'},
height: 2010,
tbar: [{
xtype:'combo',
fieldLabel: 'Escolha uma data',
store: storeComboDataRelatorios,
triggerAction: 'all',
valueField: 'value',
displayField: 'text',
name: 'dataRelatorio',
id: 'dataRelatorio',
mode: 'local',
minChars : 0,
anchor: '99%',
emptyText: '-- Selecione um item --',
editable: false,
allowBlank: false,
listeners: {'select': function (combo,record){
// Atualiza bloco de texto de resumo do relatório
atualizaInfoIntervaloRelatorio(record.data.value);
// Atualiza relatório dos TOP 50 vendedores do mes
relatorioBarrasTop50Vendedores.body.mask('Atualizando...', 'x-mask-loading');
storeRelatorioBarrasTop50Vendedores.proxy.conn.url = 'modulos/relatorios/relatorios_switch.php?act=storeRelatorioBarrasTop50Vendedores

gabbay
5 May 2010, 4:28 AM
Nobody knows how to do this??? May I do this in another way?? HELP ME, I´m getting crazy...