Greetings,
since a few hours I'm woring at your custon chart, here some breaks...
PHP Code:
$chartDefs['Agenten-Abfrage'] = array(
'type' => 'code',
'id' => 'Chart_Agenten_Abfrage',
'label' => 'Agenten Abfrage',
'chartUnits' => 'Leads Size in 1',
'chartType' => 'stacked group by chart',
'groupBy' => array( 'm', 'cc_nummer_c', ),
'base_url'=>
array( 'module' => 'Leads',
'action' => 'index',
'query' => 'true',
'searchFormTab' => 'advanced_search',
),
'url_params' => array( 'date_entered', ),
'query' => 'SELECT leads_cstm.cc_nummer_c, count(leads_cstm.lead_cnt) as m
FROM leads,leads_cstm WHERE leads.id = leads_cstm.id_c AND
leads.date_entered >= DATE_FORMAT("{$fcd_date_start}", "%Y-%m-%d %H:%i:%s")
AND leads.date_entered <= DATE_FORMAT("{$fcd_date_end}", "%Y-%m-%d %H:%i:%s")
AND leads.deleted=0
GROUP by leads_cstm.cc_nummer_c ORDER BY `m` DESC'
);
if i use the generated code from sugarcrm.log in phpmyadmin, i will get the right answer something like this:
Code:
cc_nummer_c m
501 62
164 59
502 45
147 38
163 34
162 31
148 18
128 16
129 16
2
999 1
but if i on the Dashlets view I see something like this

I think its really easy to fix. but I dont know the right part...
Bookmarks