Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
Displaying tooltips when rendering chart control to string
posted

Hi -

 I have a chart that I am rendering to a string and then displaying on a html page.  However when the chart is rendered there are no tooltips.  Is there a way to get the tooltips to display using this method?  When I display the chart without the render to string method, tooltips are displayed just fine.

here is a sample of my code

this.UltraChart2.ChartType = ChartType.ColumnChart;

this.UltraChart2.Data.ZeroAligned = true;

// Set up datasource for parent data

this.UltraChart2.Data.DataSource = GetColumnData();

this.UltraChart2.Data.IncludeColumn(0, false);

// Initialize DrillElement

this.UltraChart2.Drill.Enabled = true;

this.UltraChart2.Drill.ShowButton = true;

this.UltraChart2.Drill.DrillElements = new DrillElement[ { new DrillElement() };

this.UltraChart2.Drill.DrillElements[0].DrillDown = new MyDrillDown(UltraChart2);

this.UltraChart2.Data.DataBind();

System.IO.StringWriter stringWriter = new System.IO.StringWriter();

HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);

UltraChart2.RenderControl(htmlWriter);

Label1.Text= stringWriter.ToString();

Parents
No Data
Reply
  • 28496
    Offline posted

    you need to include ig_webchart.js for the tooltips to work -- normally this happens in the control's prerender method. 

Children
No Data