Code:
<%@ Control Language="C#" AutoEventWireup="false" Inherits="Owner.FusionChart.View" CodeFile="View.ascx.cs" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>
<dnn:DnnJsInclude runat="server" FilePath="~/js/FusionCharts.js" />
<div class="ChartClass" id="MyData">
<script type="text/javascript">
FusionCharts.setCurrentRenderer("javascript");
var fc = new FusionCharts("~/_FusionCharts/SparkLine.swf", "MyData1", "340", "50");
fc.setXMLData("<%=Sparks("Line","Data","")%>");
fc.render("MyData");
</script>
</div>