I use the code for BasicDataXML.aspx and the charts (Doughnut and bar2) are rendered well, but I always have an error in my list. This is ealle annoying because it's a fatal error so I can't go with developping unless I must always delete the file and afterwards I put it again ... everything seems OK the only thing is with -->
Return
FusionCharts.RenderChartHTML("../FusionCharts/Doughnut2D.swf", "", xmlData.ToString(), "myNext", "800", "500", False) that seems to be wrong, although the chart is rendered on teh screen. It seems to me than it has something to do with quotes ????I've got a Bin directory with FusionCharts.cs and FusionCharts.dll I made a new map on the same level as BasicDataXLM called FusionCharts and that contains FusionCharts.js, and Doughnut2D.swf ....
My Code is ....
Imports
InfoSoftGlobalImports
System.TextPartial
Class BasicDataXML
Inherits System.Web.UI.Page
Public Function GetMonthlySalesChartHtml() As String
'This page demonstrates the ease of generating charts using FusionCharts.
'For this chart, we've used a string variable to contain our entire XML data.
'Ideally, you would generate XML data documents at run-time, after interfacing with
'forms or databases etc.Such examples are also present.
'Here, we've kept this example very simple.
'Create an XML data document in a string variable
Dim xmlData As StringBuilder = New StringBuilder()xmlData.Append(
"<chart caption='Overzicht werkbaar jasje' xAxisName='Month' yAxisName='Units' showValues='1' formatNumberScale='0' showBorder='0' bgColor='FFFFFF' >")xmlData.Append(
"<set label='Woorden en uitdrukkingen gebruiken' value='8' />")xmlData.Append(
"<set label='Begrippen tijd kunnen hanteren' value='3' />")xmlData.Append(
"<set label='Begrippen tijd kunnen hanteren' value='5' />")xmlData.Append(
"<set label='blablabla' value='2' />")xmlData.Append(
"<set label='het woord in de juiste context gebruiken' value='12' />")xmlData.Append(
"</chart>")
'Create the chart - Column 3D Chart with data from xmlData variable using dataXML method
Return FusionCharts.RenderChartHTML("../FusionCharts/Doughnut2D.swf", "", xmlData.ToString(), "myNext", "800", "500", False)
End Function
End
Class
And in HTML:<%
@ Page Language="VB" AutoEventWireup="false" CodeFile="BasicDataXML.aspx.vb" Inherits="BasicDataXML" EnableSessionState="TRUE" %><
html><
head>
<title>FusionCharts - Simple Column 3D Chart using dataXML method </title>
<style type="text/css">
body {background-color: #FFFFFF; /*change color to suit*/}
.style1{
width: 98%;}
.style2{
width: 189px;}
</style></
head><
body>
<form id='form1' name='form1' method='post' runat="server">
<table class="style1">
<div align="center">
<tr>
<td align="center" class="style2">
<asp:ImageButton ID="btnMenu" runat="server" Height="50px" width="50px"
ImageUrl="~/graphics/home.gif"
PostBackUrl="leerplan_menu.aspx" ImageAlign="Top" />
<asp:ImageButton ID="ImageButton1" runat="server"
ImageUrl="~/graphics/doughnut.jpg" ImageAlign="Top" />
<asp:ImageButton ID="ImageButton2" runat="server" Height="48px"
ImageAlign="Top" ImageUrl="~/graphics/bar.gif" Width="50px" />
</td>
<td> <%=GetMonthlySalesChartHtml()%></td>
</div>
</tr>
<tr>
<td class="style2">
</td>
<td align="center" class="style3">
<hr />
</td>
</tr>
</table>
</form></
body></
html>
The error Code is: Name 'FusionCharts' is not declared
Can someone please help me ???
Thxs