Mansi Shah
Members-
Content count
40 -
Joined
-
Last visited
Everything posted by Mansi Shah
-
Hi, I just observed that, this issue arises only in MSColumn3D.swf, when i changed it to MSCombi2D.swf, it works proper. And also it seems the issue is only with FusionCharts v3, not with free charts. How can I solve the issue in MSColumn3D.swf ?
-
Here is the html code in parent aspx page, in which there is an iframe, which loads the chart. < iframe id="iFrm" runat="server" height="440px" width="720px" >< /iframe > And by passing some parameters to the chart user control, I am loading it in iframe by setting the src attribute in code behind. iFrm.Attributes.Add("src", "../charts/GolfBallTestChart.aspx?PlayerID=" & GolfSession.UserID & "&TestDate=" & dt) And in Chart user control as said in earlier post, there is a division. < div id="dvChart" runat="server" > < %=GetChart()% > < /div >
-
Hi.. here is the code, which is in a user control, and I am displaying the chart on parent page in Iframe. Client side server side code in GetChart() function
-
Thanks for the reply.
-
Hi, I am using Fusioncharts and Telerik's Rad window on the same page. And it always hides the rad window behind the chart. I tried by setting the z-index of the division in which I am putting charts, and also of the radwindow too.. But no help. I added the below line in FusionChart js but, not helping. this.addParam('WMode', 'transparent'); What is the solution for this?
-
Hi, I have to show no. of charts on a single page according to the user selection. For ex., if user selects 10 dates from the list, then it should show 10 different charts which will be created dynamically. For this I took one panel at client side, < asp : Panel ID="pnlCharts" runat="server">< /asp : Panel> And here is a server side code. for (int date = 0; date <= dateDiff.Days; date++) { DataSet ds1 = objClubTest.SelectDetailsForChart(); if (ds1 != null && ds1.Tables.Count >= 1 && ds1.Tables[0].Rows.Count >= 1) { //ShowChart(ds1); string strChart = GetCPMChart(ds1); if (strChart != "") { HtmlGenericControl h1 = new HtmlGenericControl(); h1.ID = "div" + date; h1.InnerHtml = strChart; pnlChart1.Controls.Add(h1); Literal lt1 = new Literal(); lt1.ID = "lt" + date; lt1.Text = " "; pnlCharts.Controls.Add(lt1); } } } But it shows only one chart, the last one, and for other charts it displays 'chart.' What could be the issue?
-
Multiple charts on a single page
Mansi Shah replied to Mansi Shah's topic in FusionCharts and ASP.NET
Again got the solution before any reply from Fusion charts. I was creating charts inside for loop, so the ID of the chart was creating problem. I was giving the same ID for each chart. So solved it like this by providing dynamic IDs, FusionCharts.RenderChart("../FusionCharts/MSCombi2D.swf", "", xmlData.ToString(), "ClubTestMOI" + ChartID, "760", "350", false, false, true); -
Got the solution before any reply by Fusion Charts. Here is a link of the solution: http://www.fusioncharts.com/forum/Topic20963-32-1.aspx
-
The last "true" puts the chart behind the other elements. Thanks again This really do work. Thanks a ton for the solution.
-
Error Summary HTTP Error 405.0 - Method Not Allowed
Mansi Shah posted a topic in FusionCharts and ASP.NET
Hi, I want to save the chart to download and also save it to the disk, so using code provided at http://www.fusioncharts.com/docs/ -Returning image as download -Saving to server disk But while returning image as download, it shows the capturing process and then throws the below error. Error Summary HTTP Error 405.0 - Method Not Allowed The page you are looking for cannot be displayed because an invalid method (HTTP verb) is being used. Module DirectoryListingModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x80070001 Requested URL http://localhost:80/golf/FusionCharts/ExportHandlers/ASP_Net/ Physical Path C:inetpubwwwrootGolfGolfWebFusionChartsExportHandlersASP_Net Logon Method Anonymous Logon User Anonymous And while saving it to server disk, it completes the capturing process but, it is not storing the image on provided path. What causes this issue? Anything wrong with web.config? -
Error Summary HTTP Error 405.0 - Method Not Allowed
Mansi Shah replied to Mansi Shah's topic in FusionCharts and ASP.NET
Can I have the answer of question I asked? How can save image automatically to server, without taking help of context menu? I am in search of answer of his question since last 3 days.. It's taking too much of time..:crazy: -
Error Summary HTTP Error 405.0 - Method Not Allowed
Mansi Shah replied to Mansi Shah's topic in FusionCharts and ASP.NET
Oh.. I got the image. But through the context menu, by clicking "Save as JPEG Image". Can't I create that automatically, after rendering chart, without the help of context menu. Because I am not going to show the chart on page, I just need to fetch the data from database, and have to export them to PDF. -
Error Summary HTTP Error 405.0 - Method Not Allowed
Mansi Shah replied to Mansi Shah's topic in FusionCharts and ASP.NET
The chart_images folder is there. But it does not save any image in that. Do I need to write any code for that separately, say, for any button click? Or after rendering at FusionCharts.RenderChart("../FusionCharts/MSColumn3D.swf", "myChartId", xmlData.ToString(), "BallTest", "700", "400", false, true); it will automatically save the image? -
Error Summary HTTP Error 405.0 - Method Not Allowed
Mansi Shah replied to Mansi Shah's topic in FusionCharts and ASP.NET
Hi, After reading the reply, I just tried to save the image on disk, instead of downloading it from the context menu. So, now it neither throws that bug, nor saves the image. Basically I need to do is to export chart image to PDF. Say, I have many tests user has inputted on site, now for some, it may create chart, and for some, it may create just text analysis. For that I am using iTextSharp, and I need to put the chart image inbetween of the PDF. So, for that I have to use the exportHandler only. Here is how I am using it.. Client side < script language="Javascript" type="text/javascript" src="../FusionCharts/FusionCharts.js" >< /script > < script language="Javascript" type="text/javascript" src="../FusionCharts/FusionChartsExportComponent.js" >< /script > < div id="dvChart" runat="server" > <%=GetChart()%> < /div > Server side - GetChart function xmlData.Append("< chart bgColor='FFFFFF,FFFFFF' showBorder='0' exportEnabled='1' exportAtClient='0' exportAction='save' exportHandler='http://localhost/golf/FusionCharts/ExportHandlers/ASP_Net/FCExporter.aspx' exportFileName ='mansi' > "); ---some code to create chart.. FusionCharts.RenderChart("../FusionCharts/MSColumn3D.swf", "myChartId", xmlData.ToString(), "BallTest", "700", "400", false, true); And here is Exporter class basic settings public partial class FCExporter : System.Web.UI.Page { private const string SAVE_PATH = "./Chart_Images/"; private const string HTTP_URI = "http://localhost/golf/Chart_Images/"; private bool OVERWRITEFILE = false; private bool INTELLIGENTFILENAMING = true; private string FILESUFFIXFORMAT = "TIMESTAMP"; // can be TIMESTAMP or RANDOM } But when after chart loading, I see the folder "Chart_Images", it doesn't show any image.. Where am I wrong? -
Hi, Thanks for the reply. But I am still having some issues, not able to save the image. I am creating the image serve side. Client side code < div id="dvChart" runat="server" > <%=GetChart()%> [server side function which will create categories, dataset and values in xmlData stringbuilder] < /div > < asp:HiddenField ID="hdnXML" runat="server" / > < script type="text/javascript" > //Callback handler method which is invoked after the chart has saved image on server. function myCallBackFunction(objRtn){ if (objRtn.statusCode=="1"){ alert("The chart was successfully saved on server. The file can be accessed from " + objRtn.fileName); }else{ alert("The chart could not be saved on server. There was an error. Description : " + objRtn.statusMessage); } } < /script > < script type="text/javascript" > //Create the chart. Make sure registerWithJS is set to 1, else callback cannot happen. var myChart = new FusionCharts("../FusionCharts/MSColumn3D.swf", "121", "400", "300", "0", "1"); myChart.setDataURL(document.getElementById('hdnXML').value); myChart.render("dvChart"); < /script > Server side code StringBuilder xmlData = new StringBuilder(); xmlData.Append(""); And for rendering, code is, xmlDATA = FusionCharts.RenderChart("../FusionCharts/MSColumn3D.swf","http://localhost/golf/FusionCharts/PDFs/", xmlData.ToString(), "BallTest", "700", "400", false, true); Exporer CS private const string SAVE_PATH = "../FusionCharts/PDFs/"; private const string HTTP_URI = "http://localhost/golf/FusionCharts/PDFs/"; I think client side new FusionCharts() function, but not sure with that. At present it is displaying "Error in loading data" and then some javascript text with that. There is something wrong with above code for sure, but don't know where. Can you please help me out?