Jump to content
Software FX Community

divyesh29

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by divyesh29

  1. Hi i have drag and dropped chart control on an aspx page and rendered it as an image. when head tag is set to runat server, chart renders properly and every thing works fine, but i do not want to set head tad as runat server because from JavaScript i access server side variables using angular breakets(<% %>), if head tag is set to runat server i wont be able to access server side variable in javascript. when i do not set head tag as runat server the chart does not render properly, all the toolbar options are vertically visible above the chart and none of the option works. finally the question is: is it possible to render a chart properly as an image without setting head tag as runat server? i have attached the screen shot of the problem. Thanks, Divyesh. Mcube.
  2. Hi juanZ, u can post that sample here, i can open .rar compressed file. it would be great help.. Thanks, Divyesh Mcube.
  3. Hi juanZ, i am using IE-7, i have tried same thing in IE-8 also but same problem. Which version of IE is compatible with ChartFX-7? Thanks, Divyesh Mcube.
  4. Hi juanZ, Thanks for reply. i tried as you mentioned, i created new project and pasted your code. when i run the project same error (Class doesn't support Automation) is coming in javascript function (ShowFirstLable) at 3rd statement(chx.view3d.enabled = true;). are there any more settings need to be done??? Thanks, Divyesh Mcube.
  5. Hi i want to access chart control from java script, how to do that??? i have writen following java script function function SetChart() { alert("in set chart"); chart = document.getElementById("departmentExpenceChart");if(chart.Chart) chart = chart.Chart; chart.View3D.Enabled = !chart.View3D.Enabled; } i am calling this function from button click, alert message is coming but after that error comes saying "Class doesn't support Automation". am i doing any thing wrong!! i am rendering chart as .NET. i also want to know if we can access chart from java script then what all properties or methods we can access and how? ex. Can we call RecalculateScale method from javascript?? Thanks, Divyesh Mcube
  6. hi I have created custom command and added it to toolbar. Now on click of the custom command I want to perform some action for that I am using UserCommand event. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> Problem is that UserCommand event is not occurring. code in default.aspx < chartfx7:Chart ID="departmentExpenceChart" runat="server" Height="250px" Width="375px" UseCallbacksForEvents="True" OnUserCallback="departmentExpenceChart_UserCallback" OnUserCommand="departmentExpenceChart_UserCommand" RenderFormat=".NET"> <Series> <chartfx7:SeriesAttributes /> <chartfx7:SeriesAttributes /> <chartfx7:SeriesAttributes /> </Series> <ToolBar Visible="True" /> </chartfx7:Chart> the departmentExpenceChart_UserCommand method is in default.aspx.cs protected void departmentExpenceChart_UserCommand(object sender, CommandUIEventArgs e) { if (e.CommandId == 23) { if (departmentExpenceChart.Series[0].Visible == true) { departmentExpenceChart.Series[0].Visible = false; } else{ departmentExpenceChart.Series[0].Visible = true; } } } on page load event i have written departmentExpenceChart.UserCommand += new ChartFX.WebForms.CommandUIEventHandler(departmentExpenceChart_UserCommand);but still UserCommand event is not working...am i doing any thing wrong??? pls reply as soon as possible.. Thanks, Divyesh Mcube.
  7. hi i am posting demo code. if u can suggest how this demo code will work fine then i will do the same changes in my original code.( i can not post original code due to company policies) default.aspx : this page contains code to generate chart. here i creating just a default chart which comes by default when we drag and drop chart object on page code: < asp:Panel ID="ControlPanel" runat="server" Height="50px" Width="125px"> <%-- Default Chart --%> <chartfx7:Chart ID="Chart1" runat="server" RenderFormat=".NET"> <Series> <chartfx7:SeriesAttributes /> <chartfx7:SeriesAttributes /> <chartfx7:SeriesAttributes /> </Series> </chartfx7:Chart></asp:Panel> Report.aspx : this page work as startup page. this page calls javascript method (DisplayChart) on load event which in turns calls default.aspx for chart generation. code: <html xmlns="http://www.w3.org/1999/xhtml" > < head runat="server"> <title>Untitled Page</title><script language="javascript" src="./chart.js"></script> </ head> <%-- Call to DisplayChart method (present in chart.js) on onload event of page --%> <BODY bgColor="#ffffff" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" onload="javascript:DisplayChart();"> <form id="form1" runat="server"> <div> Default Chart <table> <tr> <td width="100%" colSpan="2" align="center"> <%-- creation of place holder for chart --%> <div id="placeHolder"> </div> </td> </tr> </table> </div></form> </ body> </ html> chart.js : this file contais DisplayChart method, which calls CreateChartForOneRow method, which will call defaul.aspx for chart. after geting reply from default.aspx, reply will be parsed by getfile method and responseText will added to innerHTML of place holder available in report.aspx function DisplayChart() { //Chart div is accesseddisplayObjArea = ""; displayObjArea = document.getElementById("placeHolder"); //getting place holder element from report.aspx if(displayObjArea != null && displayObjArea != "") { chartSectionDiv = document.createElement("div"); //creating chart sectionif(chartSectionDiv != null || chartSectionDiv != undefined) { chartSectionDiv.id = "chartDiv";tableObj = document.createElement("TABLE"); //creating table for chart tableBody = CreateChartForOneRow(); // calling CreateChartForOneRow for table body tableObj.appendChild(tableBody); // attaching table body to table chartSectionDiv.appendChild(tableObj); // attaching table to chart section displayObjArea.appendChild(chartSectionDiv); //attaching chart section to place holder } } } function CreateChartForOneRow() { var tableBody = document.createElement("TBODY"); // creating table body for chart var trObj = "";var tdObj = ""; trObj = document.createElement( "TR"); // chart rowtrObj.setAttribute('align', 'center'); tdObj = document.createElement( "TD"); // chart columntdObj.setAttribute('align', 'center'); tdObj.id = "ChartTD"; tdObj.url = "default.aspx"; // calling default.aspx for charttdObj.ChartAttach = "1"; str = getFile(tdObj.url); // call to getFile to parse the response tdObj.innerHTML = str; //attaching reponse to table if (tdObj.captureEvents) tdObj.captureEvents(Event.CLICK) trObj.appendChild(tdObj); // attaching td to tr tableBody.appendChild(trObj); // attaching tr to table body return tableBody; } function getFile(filename) { oxmlhttp = null; try{ oxmlhttp = new XMLHttpRequest();oxmlhttp.overrideMimeType("text/xml"); } catch(e) { try{ oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { return null; } } if(!oxmlhttp) return null; try{oxmlhttp.open("GET",filename,false);oxmlhttp.send(null); } catch(e){ return null; } return oxmlhttp.responseText; } when i am running this demo project chart is coming if its rendered as image but if chart is rendered as .NET then chart is not coming. i am following same flow in main project so if things works here it will work in main project also. Thanks Divyesh Mcube
  8. Hi All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> i have created interactiveChart.aspx which contains chart control and i am embedding interactiveChart.aspx into report.aspx by creating place holder for chart and using javascript. now my problem is if chart render format is image then chart is visible in report.aspx but if chart render format is .NET then chart is not visible. one more thing is that if i run interactiveChart.aspx directly(without embedding into report.aspx) then chart is visible with .NET render format.. any idea what is going on and how can i solve the problem?? pls, reply as soon as possible!!! Divyesh Mcube.
  9. hi i am setting chart1.HtmlTag = ".net" at design time, after setting this property when i run the project the exception occurs saying "An exception 'System.Security.SecurityException' has occurred in localhost". how to solve this exception??? my basic requirement is to display toolbar on chart and make the chart interactive. one more point is that when i am setting chart1.HtmlTag = "image", the chart is loading properly and working fine but toolbar is not visible. how to solve this problem??? pls,reply as soon as possible!!!! Thanks, Regards, Divyesh Maniyar Mcube.
  10. Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> i want to plot a data series on z-axis. if i do chart1.cluster = true then existing series will take its position on z-axis, i do not want that, i want to plot one specific series on z-axis how a series is being plotted on Y-axis. ex. if i have three series then i want to plot on on X-axis,one on Y-axis and one on Z-axis. pls,tell me how to plot a series on z-axis?? pls reply as soon as possible. Thanks, Regards, Divyesh Maniyar Mcube ChartFxSandbox.zip
  11. Hi, i want to plot a data series on z-axis. if i do chart1.cluster = true then existing series will take its position on z-axis, i do not want that, i want to plot one specific series on z-axis how a series is being plotted on Y-axis. ex. if i have three series then i want to plot on on X-axis,one on Y-axis and one on Z-axis. pls,tell me how to plot a series on z-axis?? pls reply as soon as possible. Thanks, Regards, Divyesh Maniyar Mcube
  12. Hi, Thanks for quick reply, i will try out your suggetion. Thanks, Regards, Divyesh Maniyar Mcube
  13. Hi, i am creating dynamic chart using ChartFX - 7. i want to plot a data series on Y2 Axis( i.e. Secondary Axis). i am geting chart.Series[index].AxisY, but how to make it secondary axis?? pls, reply as soon as possible. Thanks, Regards, Divyesh Maniyar Mcube.
  14. Hi TT, thanks for reply. i got the solution from that artical. thanks for this great help!!!! Regards, Divyesh Mcube
  15. hi, i am using ChartFX-7 to generate charts. the technology i am using is .Net 2005. till the point project was not published on IIS server the chart image was generated under project folder with the sub folder chartfx70/temp, but when i published the project on IIS server, the chart image was generated under Temporary Internet Files. Now, my problem is when i use authentication mode= "Forms" in web config the chart image is not being generated. i think it is because "Forms" authentication mode restricts the access to Temporary Internet File. so, is there any way to generate chart image elsewhere ? or is there any configuration setting by which access to Temporary Internet Files is possible using authentication mode="Forms"???? pls reply as soon as possible!!!! Thanks, Regards, Divyesh Maniyar Mcube.
  16. Hi, Thanks for your prompt reply. the link you have given is realy usefull, i will go through the available samples. if possible provide me some more details on .Net Client control, because currently i am using DHTML rendering, but i need to decide whether i should move towords .Net client control or continue with DHTML. if possible also suggest which one is better. Thanks, Regards, Divyesh Maniyar Mcube.
  17. Hi All, i am using ChartFX-7(web forms) to generate dynamic charts. it is working fine. now, i want to capture Mouse Events like MouseDown, MouseClick,MouseUp etc.. is it possible to capture these events and perform some action on these events ??? In Resource Center (help available with ChartFX-7) it is mentioned that refer Appendix C for MouseEvents in web forms, but where is this Appendix C available?? pls reply as soon as possible!!!!1 Thanks, Regards, Divyesh Maniyar Mcube.
  18. hi Have u tried general steps given in chartFX 7 help.....u can find it on following link: http://support.softwarefx.com/Article.aspx?KBID=7501011&Product=&Embed=0 if u r not using chart component at design time (u r generating chart dynamicaly) then just ignore step nos 4,5, 6 and 9. try this, it may work for u!!! Thanks, Regards, Divyesh Maniyar Mcube.
  19. hi i m creating chart dynamicaly using SoftwareFX.ChartFX.Wrapper.Internet.Server. Chart customChart=new SoftwareFX.ChartFX.Wrapper.Internet.Server.Chart();after creating this customChart object i m setting all chart properties like chart border,hight,width , datasource and many more... after setting all the property i am overrideing Render(HtmlTextWriter writer) Method available in WebControl class and from that i m calling customChart.RenderControl() method, but its not woring chart image is not coming on page.. So, can u tell what should i do so that chat image comes on page?? pls, reply as soon as possible Thanks, Regards, Divyesh Maniyar Mcube.
  20. thnks for reply and solution... i ll try it out. thanks, regards, Divyesh Maniyar Mcube.
  21. hi i m generating charts dynamicaly using chartfx 7. whenever chart is generated by default it is saved into ..\chartfx70\temp folder. now my problem is that i want to know the path of chart image run time. wht to do for that??? can i change the default save path at run time???? if yes, how???? pls, reply as soon as possible!! thanks, Divyesh Maniyar. Mcube.
×
×
  • Create New...