[CLOSED] [Razor] How to use ChartTip?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] [Razor] How to use ChartTip?

    I'm having moderate success using ChartTip.

    .Tips(Html.X().ChartTip()
        .Width(140)
        .Height(28)
        .Renderer(r => r.Handler = "this.setTitle('Hello');")
    )
    1. How can I make it follow the mouse? There's no TrackMouse property available like here:
    tips: {
        trackMouse: true,
        width: 140,
        height: 28,
        renderer: convertTime
    }
    2. The chart is loaded with JavaScript from a PartialViewResult. Reloading the chart causes (some?) tooltips to stay visible once shown.
    Last edited by Daniil; Jun 08, 2012 at 2:19 PM. Reason: [CLOSED]
  2. #2
    After a bit of trial and error, I found that enabling a theme/style takes care of positioning the tooltip near the mouse. So I'll have to find out the required CSS (can't use a theme since it overwrites my existing CSS). While it doesn't follow the mouse, it's good enough for now.

    The second issue remains, however.


    Edit
    I'm running short on time and couldn't find the required CSS. For now, I've worked around both issues by using an iframe instead of loading to a div.
    I assume the beta still needs some polishing to be ready for MVC?
  3. #3
    Hi,

    Quote Originally Posted by Stijn View Post
    1. How can I make it follow the mouse? There's no TrackMouse property available like here:
    tips: {
        trackMouse: true,
        width: 140,
        height: 28,
        renderer: convertTime
    }
    Confirm. We are investigating the problem. TrackMouse should be available for ChartTip in Razor.

    Quote Originally Posted by Stijn View Post
    2. The chart is loaded with JavaScript from a PartialViewResult. Reloading the chart causes (some?) tooltips to stay visible once shown.
    Could you start a new forum thread with an example to reproduce?

    Quote Originally Posted by Stijn View Post
    I assume the beta still needs some polishing to be ready for MVC?
    Yes, that is true.
  4. #4
    Thank you for the reply. I'll try to open a new thread with example sometime next week.
  5. #5
    Vladimir has understood the source of the problem with ChartTip and will commit a fix soon.

    I will notify you.
  6. #6
    The fix has been committed to SVN, revision #4070. Please update and retest.

    Thanks again for the report.

Similar Threads

  1. [CLOSED] Add ChartTip to BarSeries
    By T3rryChan in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Jul 09, 2012, 4:16 PM
  2. Add charttip in code behind
    By cerqueira81 in forum 2.x Help
    Replies: 3
    Last Post: Jun 21, 2012, 1:28 PM
  3. [CLOSED] [Razor] HyperLink Text in Razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 20, 2012, 12:16 PM
  4. [CLOSED] [Razor] Add GridView to GridPanel in razor
    By boris in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 09, 2012, 4:23 PM
  5. [CLOSED] [Razor] Setup Auto load panel in razor
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 10:54 AM

Posting Permissions