sushma_rkd

Members
  • Content count

    18
  • Joined

  • Last visited

Everything posted by sushma_rkd

  1. Hi here's the code that doesnt work properly.. $(document).ready(function() { $.ajax({ type: "POST", url: "DrillDownPieChapter1.aspx/BindChart", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", async: true, success: function(msg) { var json = $.xml2json(msg.d); jsonString = { "chart": { "caption": "Yearly Sales", "xaxisname": "Year", "yaxisname": "Sales" }, "data": [], "linkeddata": [{ "id": [], "linkedchart": { "chart": { "caption": " Sales Summary", "subcaption": "For the year 2004", "xaxisname": "Quarter", "yaxisname": "Sales", "numberprefix": "$", "useroundedges": "1" }, "data": [] } }] } if (json.Table.length > 0) { for (i = 0; i < json.Table.length; i++) { var dataSeries = {}; dataSeries.label = json.Table.City; var item = parseFloat(json.Table.Value); dataSeries.value = item; dataSeries.link = json.Table.link; jsonString.data.push(dataSeries); } } if (json.Table.length > 0) { for (i = 0; i < json.Table.length; i++) { var dataSeries1 = {}; dataSeries1.label = json.Table.Property; var item = parseFloat(json.Table.Value); dataSeries1.value = item; var idseries = {}; idseries.id = json.Table.City; jsonString.linkeddata[0].id.push(idseries); jsonString.linkeddata[0].linkedchart.data.push(dataSeries1); } } var pieContainer = new FusionCharts("Scripts/Pie3D.swf", "Pie2D", "485", "280", "0", "1"); pieContainer.setJSONData(jsonString); pieContainer.render("ActualDatawise-Pie"); } }); }); </script>
  2. var jsonString = { "chart": { "caption": "Yearly Sales", "xaxisname": "Year", "yaxisname": "Sales" }, "data": [], "linkeddata": [{ "linkedchart": { "chart": { "caption": " Sales Summary", "subcaption": "For the year 2004", "xaxisname": "Quarter", "yaxisname": "Sales", "numberprefix": "$", "useroundedges": "1" }, "data": [] }, "id": 'Bangalore' }] }
  3. how to diffrenciate the colors for pie chart for most minimum and negative values...
  4. The dim color which is showing is the most minimum value it should be highlighted with the bright color
  5. Hi, How to set the values of y-axis manually instead of using minimum and maximum values......
  6. Hi, The fusion charts are not updating the realtime data when I set the interval..according to that it should set the provision to update the data on real time bind ..but thats not working ..what is the solution here..
  7. Hi, I m sorry but the fusion charts that works properly with real time data.,,but that didnot binding properly..
  8. Hi, I knew that FusionWidgets does not support JSON data for rendering gauges and real time chart, at this time..I am talking about the Fusion charts which could bind the real time data using json...I thing is realtime data not binding with fusion charts..What is the solution..??
  9. Hi, I knew that FusionWidgets does not support JSON data for rendering gauges and real time chart, at this time..I am talking about the Fusion charts which could bind the real time data using json...I thing is realtime data not binding with fusion charts..What is the solution..??
  10. http://www.fusioncharts.com/widgets/Gallery/RealTimeStColumn1.html I dont want XML........................I require only json which is required from the Database
  11. Hi, I am adding this text pls look thru and help me out.. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="liveStockPrice.aspx.cs" Inherits="liveStockPrice" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Live Chart</title> <script src="Scripts/jquery-1.4.4.min.js" type="text/javascript"></script> <script src="Scripts/jquery.xml2json.js" type="text/javascript"></script> <script src="FusionScripts/FusionCharts.js" type="text/javascript"></script> <script src="FusionScripts/highcharts.js" type="text/javascript"></script> <script type="text/javascript"> $.ajax({ type: "POST", url: "liveStockPrice.aspx/BindlineChart", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", async: true, success: function(msg) { var json = $.xml2json(msg.d); var RevenuejsonString = { chart: { "caption": "Concurrent Users", "borderColor": "899FB6", "subcaption": "(Updates every 10 minutes)", "canvasborderColor": "DAE1E8", "canvasBgColor": "FFFFFF", "bgColor": "EEF2FB", "numDivLines": "6", "divLineColor": "DAE1E8", "divLineAlpha": "75", "alternateHGridAlpha": "30", "decimals": "0", "baseFontColor": "899FB6", "outCnvBaseFontColor": "444C60", "toolTipBorderColor": "DAE1E8", "toolTipBgColor": "FFFFFF", "toolTipSepChar": " ", "showAlternateHGridColor": "1", "alternateHGridColor": "DAE1E8", "dataStreamURL": "http://localhost:50060/Realtime/liveStockPrice.aspx", "refreshInterval":"10", "updateInterval": "1", "numDisplaySets": "15", "showLegend": "1", "showLabels": "1", "showRealTimeValue": "0", "showShadow": "1", "showPlotBorder": "0", "plotBordercolor": "FFFFFF", "plotGradientColor": "", "labelDisplay": "rotate", "canvasLeftMargin": "50", "realTimeValuePadding": "50", "showSum": "1" }, categories: [{ category: [] }], dataset: [] }; var datasetNonDedicate = { "seriesname": "Dedicated", data: [] }; datasetNonDedicate.data = new Array(); if (json.Table.length > 0) { for (i = 0; i < json.Table.length; i++) { var categoryLabel = {}; var dataSeriesNonDedicated = {}; categoryLabel.label = json.Table.Property; RevenuejsonString.categories[0].category.push(categoryLabel); var item = parseFloat(json.Table.PendingAmount); dataSeriesNonDedicated.value = item; datasetNonDedicate.data.push(dataSeriesNonDedicated); } } RevenuejsonString.dataset.push(datasetNonDedicate); // RevenuejsonString.dataset.push(datasetDedicate); //StackedColumn2D.swf //MSColumnLine3D var barContainer = new FusionCharts("FusionCharts/RealTimeStackedColumn.swf", "barDrillDownID", "600", "400", "0", "1"); barContainer.setJSONData(RevenuejsonString); barContainer.render("StackedColumn3DContainer"); }, error: function(xmlhttprequest, textstatus, errorThrown) { alert(xmlhttprequest.responseText); } }); </script> </head> <body> <form id="form1" runat="server"> <div id="StackedColumn3DContainer"> </div> <div id="chartContainer"> </div> <script type="text/javascript"> var myChart = new FusionCharts("FusionCharts/RealTimeStackedColumn.swf", "myChartId", "400", "300", "0", "1"); myChart.setXMLUrl("Data.xml"); myChart.render("chartContainer"); </script> </form> </body> </html> using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.IO; using System.Text; using System.Web.Services; using Testing.BusinessLogicLayer; using Testing.DataAccessLayer; public partial class liveStockPrice : System.Web.UI.Page { static string connstring = ConfigurationManager.AppSettings.Get("SQLCONNECTION"); protected void Page_Load(object sender, EventArgs e) { } [WebMethod] public static String BindlineChart() { DateTime dn = DateTime.Now; DateTime AsOnDate = dn.Date; SampleAdapter ta = new SampleAdapter(); DataTable dt = new DataTable(); dt = ta.ReportsOutStandingBillsWithCriteria(connstring, "", 1, AsOnDate); return ConvertDataTableToXML(dt); } private static string ConvertDataTableToXML(DataTable dtBuildSQL) { DataSet dsBuildSQL = new DataSet(); StringBuilder sbSQL; StringWriter swSQL; string XMLformat; sbSQL = new StringBuilder(); swSQL = new StringWriter(sbSQL); dsBuildSQL.Merge(dtBuildSQL, true, MissingSchemaAction.AddWithKey); dsBuildSQL.Tables[0].TableName = "Table"; foreach (DataColumn col in dsBuildSQL.Tables[0].Columns) { col.ColumnMapping = MappingType.Attribute; } dsBuildSQL.WriteXml(swSQL, XmlWriteMode.WriteSchema); XMLformat = sbSQL.ToString(); return XMLformat; } }
  12. Hi Angshu, I started using the Fusion by refering your Documentation but I couldnt find the way..And I require the Chart very urgently since the deadline is given..I m attaching the File pls look through..
  13. Urgently Required

    Is there any way to Bind the Fusion Charts for the Real Time Data on the Server
  14. Urgently Required

    Fusion Charts not loading properly on Real Time Data from the Server..How this problem could be resolved
  15. Can you send the example in c# using asp.net the example on Real Time Stacked Column using Json data..
  16. Hi, How that could be resolved then when I m using realtime data on any other charts..Real Time Data from the server is not loading..
  17. Hi, How that could be resolved then when I m using realtime data on any other charts..Real Time Data from the server is not loading..
  18. Urgently Required

    I Required it Urgently