Jump to content
Software FX Community

Javascript problem with Chart


julio15

Recommended Posts

To show/hide the chart using JavaScript you can do the following:

<

script>function Button0_onclick()

{

var chart = document.getElementById('Chart1'); if (chart.Chart)

chart = chart.Chart;

chart.Visible = !chart.Visible;

}

</script>

I am using the above code with a CheckBox and calling the above function from the onclick event of this object. This is what I have:

<

asp:CheckBox ID="CheckBox1" runat="server" Height="35px" Text="Show/Hide Chart"

Width="248px" onclick="return Button0_onclick()" />

Also, make sure that your browser allows JavaScript code to be executed and that if you are rendering the chart as .NET, to set the .NET Framework to "Full Trust".

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...