You are viewing documentation for an older version. For current documentation - click here.

Here we create a chart using HTML embedding method. We don't need to include FusionCharts.js - FusionCharts JavaScript Embedding Class. Let's see how to use FusionCharts ASP Class to create a chart through HTML embedding method:

<html>
    <head>
       <title>Render as HTML Using FusionCharts ASP Class</title>
    </head>
    <body>
         <%@LANGUAGE="VBSCRIPT"%>
    <%
      ' Include FusionCharts ASP Class
    %> 
    <!--#include file="../Class/FusionCharts_Gen.asp"-->
    <%
      dim FC
       ...
       ' Pass True to renderChart() function
       ' to use HTML Embedding Method.
       ' This is helpful if you wish not use FusionCharts.js
       ' or when rendering the chart using AJAX
       Call FC.renderChart(True)        
    %>
    </body>
</html>

Let's analyze the steps involved in the above code:

  • We don't use FusionCharts.js.
  • Here, we render the chart as:

    Call FC.renderChart(True)

    The renderChart() function takes a parameter with value - 'True'. This helps in using HTML Embedding Method. Setting this parameter to 'True' helps us not to use FusionCharts.js.  This helps to render chart while using AJAX as well.