.Net Quick start for the OpenFlashChart control

Page 2 - Add Data

With this quick start tutorial you should be able to have a test implementation in minutes. Just follow these simple steps: First download the precompiled version of the OpenFlashChart Control (modified by Prestige Development Group, LLC).

Start a new website in Visual Studio. Copy the contents that were in the quickstart folder to your new website directory. Now refresh your solution and it should look like the picture below.



Now you will want to add the OpenFlashChart.dll to your bin folder. First add the .Net Bin folder to your solution: Right click on the project, click add ASP.Net Folder. Then Choose Bin.



Now that you have the Bin folder, right click on it and choose -> Add existing item. You should see the OpenFlashChart.dll (if you copied it to your new solutions directory.) Your solution should now look like this:



Now its time to register the control. Go to your default.aspx page and add the following:
<%@Register TagPrefix="ofc" Namespace="OpenFlashChart" Assembly="OpenFlashChart" %>

You are now ready to add the Chart control to your page. Add the following between the div Tags in your form:
<ofc:Chart ID="Chart" Height="500" Width="800" runat="server" />

Your .aspx page code should look like this:


Now in your code behind you need to turn off the page caching. Go to the page load even and add: Response.CacheControl = "no-cache"



Run your solution, you should have a big empty chart show up.



You are now ready to add some data!

Page 2 - Add Data