This question is locked. New answers and comments are not allowed.
Hello,
Could you tell me if there's a way to concatenate the name of the serie to tooltip value?
I wait for your comments, thanks.
Could you tell me if there's a way to concatenate the name of the serie to tooltip value?
<%= Html.Telerik().Chart(Model)
.Name("chart")
.Series(series => {
series.Bar(s => s.RepSales).Name("Representative Sales");
})
.CategoryAxis(axis => axis
.Categories(s => s.DateString)
)
%>
I wait for your comments, thanks.
6 Answers, 1 is accepted
0
Hi Martinez,
Best wishes,
Hristo Germanov
the Telerik team
Thank you for contacing us.
Could you please try this:
<%= Html.Telerik().Chart(Model)
.Name("chart")
.Series(series => {
series.Bar(s => s.RepSales).Name("Representative Sales");
})
.CategoryAxis(axis => axis
.Categories(s => s.DateString)
)
.Tooltip(tooltip => tooltip.Template("series name: <#= series.name #> value: <#= value #>").Visible(true))
%>
Hristo Germanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Felipe Saldana
Top achievements
Rank 1
answered on 11 Nov 2011, 06:55 PM
Is it possible to add the X axis value to the tool tip
In your example I want to add the s.DateString value to the tool tip.
Also, what other fields are available for use besides "series.name" and "value"?
In your example I want to add the s.DateString value to the tool tip.
Also, what other fields are available for use besides "series.name" and "value"?
0
Hello Felipe Saldana,
You can try to set category in your template.
Regards,
Hristo Germanov
the Telerik team
The available temlate variables are:
value - the point value
category - the category name
series - the data series configuration object
dataItem - the original data item (client-side binding only)
Hristo Germanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Hello Felipe Saldana,
You can try to set category in your template.Regards,
Hristo Germanov
the Telerik team
The available temlate variables are:
value - the point value
category - the category name
series - the data series configuration object
dataItem - the original data item (client-side binding only)
Hristo Germanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Felipe Saldana
Top achievements
Rank 1
answered on 14 Nov 2011, 05:18 PM
This worked great!
Thanks.
Thanks.
0
Ki Won
Top achievements
Rank 1
answered on 01 Dec 2011, 02:31 AM
Thanks for your reply.
but I can't display 'series' and 'dataItem' template variables.
that result are [object Object]
then 'value' and 'category' template variables are work well.
under non-Ajax Binding.
my version is Version Q3 2011, released 11/15/2011 Open source linecse.
but I can't display 'series' and 'dataItem' template variables.
that result are [object Object]
then 'value' and 'category' template variables are work well.
under non-Ajax Binding.
my version is Version Q3 2011, released 11/15/2011 Open source linecse.