This is a migrated thread and some comments may be shown as answers.

Make Cateogy as a hyperlink in RadCartesionChart

3 Answers 28 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Hemant
Top achievements
Rank 1
Hemant asked on 04 Jun 2014, 09:55 AM
Hi,
I want to make my category as a hyperlink. I am adding category programmatically.

barChart.DataPoints.Add(new CategoricalDataPoint() { Value = item.StatusCount, Category = item.Label });

Please help for same.

Thank You,

3 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 05 Jun 2014, 09:54 AM
Hello Hemant,

You have opened this thread with RadChart as a product. This is the old charting solution that we have, and it seems for the provided code that you are using the new ChartView. This is why I have changed the product and forum of this thread to ChartView.

It is not clear from your question if you need to make the axis labels or the series labels hyperlinks. We do not have such a functionality built-in. For the axis, you need to use the LabelTemplate and for the bar series, you need to add a label definition. In both cases you will need to include a custom DataTemplate that acts like a hyperlink and you will need to provide a category that holds information about the text you want to be displayed and the link it directs to. I have attached a simple project to demonstrate this. 

Regards,
Petar Marchev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Hemant
Top achievements
Rank 1
answered on 06 Jun 2014, 06:14 AM
Thanks Petar that will help me
can we apply tooltip to barchart? if yes then suppose a single bar is combination of two different categories then how can we differentiate them for tooltip?
Please look into attached picture
0
Accepted
Petar Marchev
Telerik team
answered on 06 Jun 2014, 10:07 AM
Hi,

I suggest you explore our online qsx examples, where we demonstrate Stacked bars, tooltips and many other chart features. You can also examine our sdk samples, where we have created smaller projects for the different features or scenarios. You may also find our online documentation helpful.

Regards,
Petar Marchev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ChartView
Asked by
Hemant
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Hemant
Top achievements
Rank 1
Share this question
or