O'Reilly logo

FusionCharts by Shamasis Bhattacharya, Pallav Nadhani, Sanket Nadhani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — create a chart in C# using data from an array

  1. Open the previously created ArrayExample.aspx.
  2. Include FusionCharts.js in this page by adding the code:
    <script type="text/javascript" src="Charts/FusionCharts.js"></script>
    
  3. Add a literal control to the form in this file, so that the code looks as:
    <form id="form1" runat="server">
    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
    </form>
    
  4. Open the code-behind file ArrayExample.aspx.cs and type in the following code:
    using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Text; using InfoSoftGlobal; public partial class _ArrayExample : System.Web.UI.Page { protected void Page_Load(object ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required