질문하기질문하기
 

답변됨chart loses tooltips

  • 2009년 4월 24일 금요일 오후 3:01dannystommen 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hi there,

    I successfully created a chart. Because I want to use it dynamic, I use querystring and load this form in an iFrame. Everything (including tooltips) worked fine.

    But I'm not really a fan of iframes. So I decided to return the graph as an image. Now I can use this char in an <IMG> tag instead of an <IFRAME> tag.

    It works and I am able to load the chart in an image tag, but the tooltips are lost now. Is there any way to prevent this, or should I switch back to the first approach?
    •  

답변

  • 2009년 4월 27일 월요일 오후 5:12DelianTMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    Chart tooltips are rendered as part of <map /> tag which supplements the  chart <img /> tag. Check your generated html in your iframe.

    If you use binary streaming ( the aspx page returns the chart image directly ) you need to find a way to embed the chart image maps in the main page.
    You can use Chart.GetHtmlImageMap( string imageMapName ) to get rendered image map or set Chart1.RenderType = RenderType.ImageMap.

    Syncing the chart image  and image maps on two separate pages is not simple task because data and appearance of the both charts have to be exactly the same.

    Please refer to the chart sample Rendering->Binary Streaming Rendering for this technique: http://code.msdn.microsoft.com/mschart

    Regards,
    Delian

모든 응답

  • 2009년 4월 27일 월요일 오후 5:12DelianTMSFT, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    Chart tooltips are rendered as part of <map /> tag which supplements the  chart <img /> tag. Check your generated html in your iframe.

    If you use binary streaming ( the aspx page returns the chart image directly ) you need to find a way to embed the chart image maps in the main page.
    You can use Chart.GetHtmlImageMap( string imageMapName ) to get rendered image map or set Chart1.RenderType = RenderType.ImageMap.

    Syncing the chart image  and image maps on two separate pages is not simple task because data and appearance of the both charts have to be exactly the same.

    Please refer to the chart sample Rendering->Binary Streaming Rendering for this technique: http://code.msdn.microsoft.com/mschart

    Regards,
    Delian
  • 2009년 4월 28일 화요일 오전 7:57dannystommen 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Syncing the chart image  and image maps on two separate pages is not simple task because data and appearance of the both charts have to be exactly the same.
    Do you have any example about syncing this?
  • 2009년 5월 3일 일요일 오후 7:09Alex GorevMSFT, 소유자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     

    Have you checked the Binary Streaming example mentioned by Delian?

    Alex.


    http://blogs.msdn.com/alexgor
  • 2009년 5월 8일 금요일 오후 1:25dannystommen 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Yes I did. That is the approach I use to display the chart in an <img> tag. But that example doesn't have any tooltips.
  • 2009년 7월 2일 목요일 오후 1:39bennyb 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    I have this same issue. Did you get it resolved?
  • 2009년 7월 3일 금요일 오전 6:55dannystommen 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    No I did not find any answer