Template for group by

by david.castaño-aristizabal » Wed Apr 15, 2015 3:55 pm

Which template do we use to put in the template of the tooltip for the Group By text?
User avatar
david.castaño-aristizabal
 
Posts: 18
Joined: Wed Apr 15, 2015 3:49 pm

by Dmitry Kozlov » Thu Apr 16, 2015 5:07 pm

Please, try the following template:
#= dataItem.value #
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm

by david.castaño-aristizabal » Thu Apr 23, 2015 1:59 pm

Hi Dmitry when i use that template it displays "undefined"
User avatar
david.castaño-aristizabal
 
Posts: 18
Joined: Wed Apr 15, 2015 3:49 pm

by Dmitry Kozlov » Fri Apr 24, 2015 10:52 am

Hi,
Could you provide screenshots of the chart, data source configuration and aggregation settings? Also, please, specify what field from your data source you need to display as a tooltip.
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm

by david.castaño-aristizabal » Fri Apr 24, 2015 2:53 pm

HI Dmitry

Data source
Datasource.PNG
Datasource.PNG (42.29 KiB) Viewed 3556 times


Aggregation settings
Aggregation settings.PNG
Aggregation settings.PNG (27.54 KiB) Viewed 3556 times


Chart
Graph.PNG
Graph.PNG (15.5 KiB) Viewed 3556 times


The tooltip that we want to display is the one in the legend in order to identify each color with the tooltip.
User avatar
david.castaño-aristizabal
 
Posts: 18
Joined: Wed Apr 15, 2015 3:49 pm

by Dmitry Kozlov » Tue Apr 28, 2015 1:21 pm

Sorry for the delay. Please, try the following template:
#= dataItem.Asistencia0 #
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm

by david.castaño-aristizabal » Mon May 04, 2015 8:49 pm

Perfect it Works great, many thanks
User avatar
david.castaño-aristizabal
 
Posts: 18
Joined: Wed Apr 15, 2015 3:49 pm

by david.castaño-aristizabal » Fri May 08, 2015 9:53 pm

HI Dmitry I just recently encountered that when using a template in the tooltip that combines text and currency (#= dataItem.Tipo_x0020_de_x0020_cliente#: #= value #) the tooltip loses the format, is there anyway we can achieve this?
User avatar
david.castaño-aristizabal
 
Posts: 18
Joined: Wed Apr 15, 2015 3:49 pm

by Dmitry Kozlov » Mon May 18, 2015 12:45 pm

Hi,
You can format a value directly in a template. Say, if you need to format a field as currency, use the following template:
#= kendo.toString(value, "c"); #
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm

by david.castaño-aristizabal » Fri Jun 05, 2015 2:41 pm

Many thanks, it Works perfectly, i only removed the ";" to use #= kendo.toString(value, "c0") #
User avatar
david.castaño-aristizabal
 
Posts: 18
Joined: Wed Apr 15, 2015 3:49 pm


Return to Dashboard Designer for SharePoint 2013

cron