Skip to content

Commit 1ba55e2

Browse files
committed
Merge branch 'release/1.0'
2 parents d074157 + 52f2fa9 commit 1ba55e2

31 files changed

+5191
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FusionCharts/FusionCharts/obj/Debug/

FusionCharts/FusionCharts.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FusionCharts", "FusionCharts\FusionCharts.csproj", "{44DD3A0C-83AC-42A9-BF5A-6521A107FA77}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Release|Any CPU = Release|Any CPU
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{44DD3A0C-83AC-42A9-BF5A-6521A107FA77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
13+
{44DD3A0C-83AC-42A9-BF5A-6521A107FA77}.Debug|Any CPU.Build.0 = Debug|Any CPU
14+
{44DD3A0C-83AC-42A9-BF5A-6521A107FA77}.Release|Any CPU.ActiveCfg = Release|Any CPU
15+
{44DD3A0C-83AC-42A9-BF5A-6521A107FA77}.Release|Any CPU.Build.0 = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{44DD3A0C-83AC-42A9-BF5A-6521A107FA77}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>FusionCharts</RootNamespace>
11+
<AssemblyName>FusionCharts</AssemblyName>
12+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<TargetFrameworkProfile />
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
<DocumentationFile>bin\Debug\FusionCharts.XML</DocumentationFile>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\Release\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
<DocumentationFile>bin\Release\FusionCharts.XML</DocumentationFile>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Reference Include="System" />
37+
<Reference Include="System.Core" />
38+
<Reference Include="System.Web" />
39+
<Reference Include="System.Xml.Linq" />
40+
<Reference Include="System.Data.DataSetExtensions" />
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="System.Data" />
43+
<Reference Include="System.Xml" />
44+
</ItemGroup>
45+
<ItemGroup>
46+
<Compile Include="..\..\sample\App_Code\FusionCharts.cs" />
47+
<Compile Include="Properties\AssemblyInfo.cs" />
48+
</ItemGroup>
49+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
50+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
51+
Other similar extension points exist, see Microsoft.Common.targets.
52+
<Target Name="BeforeBuild">
53+
</Target>
54+
<Target Name="AfterBuild">
55+
</Target>
56+
-->
57+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("FusionCharts")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("Microsoft")]
12+
[assembly: AssemblyProduct("FusionCharts")]
13+
[assembly: AssemblyCopyright("Copyright © Microsoft 2014")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("a369515e-f3a3-44e2-a2fc-7d8c9e71b0b8")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

build/7za.exe

574 KB
Binary file not shown.

build/release.bat

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
@echo off
2+
echo.
3+
echo.
4+
echo.
5+
echo Clearing folder structure...
6+
rd /s /q "..\production\asp-net-wrapper\." 1>nul 2>&1
7+
mkdir "..\production\asp-net-wrapper" 1>nul 2>&1
8+
mkdir "..\production\asp-net-wrapper\Bin" 1>nul 2>&1
9+
del /q "..\production\asp-net-wrapper.zip" 1>nul 2>&1
10+
echo.
11+
12+
echo Copying production ready files...
13+
xcopy /y /s /e "..\sample\*.*" "..\production\asp-net-wrapper" 1>nul 2>&1
14+
rd /s /q "..\production\asp-net-wrapper\App_Code\." 1>nul 2>&1
15+
copy /y "..\FusionCharts\FusionCharts\bin\Release\FusionCharts.dll" "..\production\asp-net-wrapper\Bin\." 1>nul 2>&1
16+
copy /y "..\FusionCharts\FusionCharts\bin\Release\FusionCharts.xml" "..\production\asp-net-wrapper\Bin\." 1>nul 2>&1
17+
copy /y "..\readme.md" "..\production\asp-net-wrapper\." 1>nul 2>&1
18+
19+
echo.
20+
echo Making production package...
21+
7za.exe a -r "..\production\asp-net-wrapper.zip" "..\production\asp-net-wrapper" 1>nul 2>&1
22+
rd /s /q "..\production\asp-net-wrapper\." 1>nul 2>&1
23+
echo.
24+
echo Done!!!
25+
pause

production/asp-net-wrapper.zip

486 KB
Binary file not shown.

readme.md

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,95 @@
1-
FusionCharts ASP.NET Wrapper
2-
============================
1+
# FusionCharts ASP.NET Wrapper
2+
3+
### What is FusionCharts .NET wrapper?
4+
5+
FusionCharts Suite XT uses JavaScript to generate charts in the browser. Where using these ASP.NET server side wrapper you can create charts in your ASP.NET website without writing any Javascript code.
6+
7+
### How does the wrapper work?
8+
Charts are generated in the browsers with the help of JavaScript and the HTML code.
9+
Using this ASP.NET wrapper we can generate the required JavaScript and HTML code as a string in the server. We can put this strings in the page to generate charts.
10+
11+
### Version
12+
1.0
13+
14+
### Requirements
15+
.NET Framework 3.5 or higher
16+
17+
### Installation
18+
* Add a reference of the FusionCharts assembly in your project.
19+
* Start using methods and classes available under **"FusionCharts.Charts"** namespace to generate Charts in your project.
20+
* For a woking sample, the "asp-net-wrapper.zip" can be used.
21+
22+
### Usage
23+
##### Chart Class (FusionCharts.Charts)
24+
Represent the FusionCharts class that can be initialized to create a chart.
25+
###### **Constructor parameters:**
26+
Following parameters can be used in the constructor in the order as they are described. All parameters are optional, we can configure them later.
27+
28+
| Parameter | Type | Description |
29+
|:-------|:----------:| :------|
30+
| chartType | `String` | The type of chart that you intend to plot. e.g. `Column3D`, `Column2D`, `Pie2D` etc.|
31+
|chartId | `String` | Id for the chart, using which it will be recognized in the HTML page. Each chart on the page needs to have a unique Id.|
32+
|chartWidth | `String` | Intended width for the chart (in pixels). e.g. `400`|
33+
|chartHeight | `String` | Intended height for the chart (in pixels). e.g. `300`|
34+
|dataFormat | `String` | Type of the data that is given to the chart. e.g. `json`, `jsonurl`, `csv`, `xml`, `xmlurl`|
35+
|dataSource | `String` | Actual data for the chart. e.g. `{"chart":{},"data":[{"label":"Jan","value":"420000"}]}`|
36+
|bgColor | `String` | Background color of the chart container. e.g. `cccccc`|
37+
|bgOpacity | `String` | Background opacity of the chart container. e.g. `1`|
38+
39+
##### Methods under Chart class
40+
41+
###### **SetChartParameter**
42+
This method can be used to set or modified various chart paramerers like `chartType`, `chartWidth`, `chartHeight` etc. The method has following parameters:
43+
44+
| Parameter | Type | Description |
45+
|:-------|:----------:| :------|
46+
| param | `enum` | Name of chart parameter. e.g. `Chart.ChartParameter.chartType`.|
47+
| value | `String` | Value of chart parameter. e.g. `column2d` |
48+
49+
###### **GetChartParameter**
50+
This method can be used to get the value of any chart paramerer. The method has following parameter. This method returns the value of the parameter as a string.
51+
52+
| Parameter | Type | Description |
53+
|:-------|:----------:| :------|
54+
| param | `enum` | Name of chart parameter. e.g. `Chart.ChartParameter.chartType`.|
55+
56+
###### **SetData**
57+
This method can be used to set the data to the chart. The method has following argumets.
58+
59+
| Parameter | Type | Description |
60+
|:-------|:----------:| :------|
61+
| dataSource | `String` | Data for the chart. e.g. `data/data.xml` |
62+
| format | `enum` | Optional. The format of the data. e.g. `Chart.DataFormat.xmlurl` |
63+
64+
###### **Render**
65+
Public method to generate html code for rendering chart. This function assumes that you've already included the FusionCharts JavaScript class in your page. Optionaly, Following parameters can also be passed to the chart in the order as they are described.
66+
67+
| Parameter | Type | Description |
68+
|:-------|:----------:| :------|
69+
| chartType | `String` | The type of chart that you intend to plot. e.g. `Column3D`.|
70+
|chartId | `String` | Id for the chart, using which it will be recognized in the HTML page. Each chart on the page needs to have a unique Id.|
71+
|chartWidth | `String` | Intended width for the chart (in pixels). e.g. `400`|
72+
|chartHeight | `String` | Intended height for the chart (in pixels). e.g. `300`|
73+
|dataFormat | `String` | Type of the data that is given to the chart. e.g. `json`, `jsonurl`, `csv`, `xml`, `xmlurl`|
74+
|dataSource | `String` | Data for the chart. e.g. `{"chart":{},"data":[{"label":"Jan","value":"420000"}]}`|
75+
|bgColor | `String` | Background color of the chart container. e.g. `cccccc`|
76+
|bgOpacity | `String` | Background opacity of the chart container. e.g. `1`|
77+
78+
###### **Clone**
79+
Clone method can be used to clone an existing chart instance. All properties except the chartId of the parent chart instance will be cloned into the child instance.
80+
```cs
81+
Chart sales = new Chart("column3d", "myChart", "400", "300", "xmlurl", "data/data.xml");
82+
//Render the column3D chart
83+
Literal1.Text = sales.Render();
84+
Chart salesClone = sales.clone();
85+
salesClone.SetChartParameter(Chart.ChartParameter.chartType, "column2d");
86+
//Render the column2D chart
87+
Literal2.Text = salesClone.Render();
88+
```
89+
90+
###License
91+
92+
**FUSIONCHARTS:**
93+
94+
Copyright (c) FusionCharts Technologies LLP
95+
License Information at [http://www.fusioncharts.com/license](http://www.fusioncharts.com/license)

0 commit comments

Comments
 (0)