Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
samples
/
Pages
:
ChartLanguage.aspx.cs
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
using System; using FusionCharts.Charts; public partial class Pages_ChartLanguage : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //json data in string format string jsonData = "{ 'chart': { 'caption': 'سوبرماركت هاري', 'subcaption': 'الإيرادات الشهرية للعام الماضي', 'xaxisname': 'الشهر', 'yaxisname': 'كمية', 'numberprefix': '$', 'theme': 'fusion', 'rotatevalues': '1', 'exportenabled': '1' }, 'data': [ { 'label': 'يناير', 'value': '420000' }, { 'label': 'فبراير', 'value': '810000' }, { 'label': 'مارس', 'value': '720000' }, { 'label': 'أبريل', 'value': '550000' }, { 'label': 'مايو', 'value': '910000' }, { 'label': 'يونيو', 'value': '510000' }, { 'label': 'يوليو', 'value': '680000' }, { 'label': 'أغسطس', 'value': '620000' }, { 'label': 'سبتمبر', 'value': '610000' }, { 'label': 'أكتوبر', 'value': '490000' }, { 'label': 'نوفمبر', 'value': '900000' }, { 'label': 'ديسمبر', 'value': '730000' } ] }"; // create chart instance // parameter // chrat type, chart id, chart widh, chart height, data format, data source Chart column2d = new Chart("column2d", "first_chart", "700", "400", "json", jsonData); //render chart Literal1.Text = column2d.Render(); } }