Make Cateogy as a hyperlink in RadCartesionChart

4 posts, 2 answers
  1. Hemant
    Hemant avatar
    2 posts
    Member since:
    Apr 2014

    Posted 04 Jun 2014 Link to this post

    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,
  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 05 Jun 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Hemant
    Hemant avatar
    2 posts
    Member since:
    Apr 2014

    Posted 06 Jun 2014 Link to this post

    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
  5. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 06 Jun 2014 Link to this post

    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.
     
Back to Top