You must Sign In to post a response.
  • Category: ASP.NET

    How to display chart in new tab in asp.net

    my code as follows

    <<asp:Chart ID="chart2" runat="server" Width="747px">
    <series>
    <asp:Series Name="Approved" Label="" Legend="Legend1">
    <asp:Series Name="Rejected" Label="" Legend="Legend1">
    <asp:Series Name="Pending" Label="" Legend="Legend1">

    <chartareas>
    <asp:ChartArea Name="ChartArea1">

    <legends>
    <asp:Legend Name="Legend1">




    i have one button, when i click the button chart will display.

    My code for button click as follows

    chart2.Visible = true;

    chart2.Series[0].Points.Add(new DataPoint(0, 5));
    chart2.Series[0].Points.Add(new DataPoint(1, 12));
    chart2.Series[0].Points.Add(new DataPoint(2, 18));
    chart2.Series[0].Points.Add(new DataPoint(3, 22));


    chart2.Series[1].Points.Add(new DataPoint(0, 10));
    chart2.Series[1].Points.Add(new DataPoint(1, 14));
    chart2.Series[1].Points.Add(new DataPoint(2, 19));
    chart2.Series[1].Points.Add(new DataPoint(3, 23));


    i want to display chart in new tab for that how to do
  • #769529
    Hi Rao,

    For the new tab, You can just implement the chart related code into a new page. Whenever you are clicking a button, just open a new page as a window.open code in new tab.

    Regards,
    V.M. Damodharan
    "Your talent will be worthless, when you have fear and tension."


  • Sign In to post your comments