Jump to content
Software FX Community

liquid.ice

Members
  • Posts

    8
  • Joined

  • Last visited

liquid.ice's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Guys, I'm trying to handle the stacking of bar charts in javascript. I've got a chart wrapper control that sets data into groups for stacking. Since stacking will not be displayed correctly if there is a line chart inbetween stacks, reordering of the series is required. I've attached the javascript code to the InternalCommand to try and capture the commandId and also to see what stacking choice was selected, see code below: <script language="JavaScript" for='<%=mChart.UniqueID %>' event="InternalCommand(sender, args)"> <!-- alert(args.CommandId); var chart = document.getElementById('mChart'); if (chart.Chart) chart = chart.Chart; alert(chart.AllSeries.Stacked); --> </script> The commandId is always 29696 which is the id for the "Apply" button. What I want is the CommandId of the stacked options i.e. stacked, stacked100. Also, is there anyway to get the type of stack selected from the chart object? The AllSeries.Stacked only returns true and false. Not sure if this is the best approach to take. Ajax is not an option so it's either reorganising the data through javascript or handling the chart on a postback. Is there any documentation available on what JavaScript objects, functions and properties are available for use? Any help would be appreciated.
  2. Hi Guys, Was taking a look at the Statistical winforms example project and noticed that in the series property tab, the statistical gallery types are not displayed. They are displayed on the context menus and also the toolbar. Not sure if this is a bug, as I created my own project, and it happens there as well. Either that, or I've missed something when attaching the extension. Also, when using the following code to disable gallery changes: chart1.AllowChanges = chart1.AllowChanges & ~AllowChanges.GlobalGallery & ~AllowChanges.SeriesGallery; The gallery toolbar only gets disabled when right clicking on a series. On load, the gallery toolbar is still enabled and gallery types can still be changed. It is only disabled when the series context menu is shown. Is this the correct behaviour? All replies are appreciated.
  3. Another question is that when exporting to binary, the titles aren't displayed when the binary file is imported back. On save i used: mChart.FileContents = mChart.FileContents | FileContents.TitlesText; // defaults to all but not including titlestext so need to add mChart.Export(FileFormat.Binary, filename); on import is used: mChart.Import(FileFormat.Binary, filename); Any ideas? Thanks in advance
  4. Hi Guys, I'm trying to export a chart to xml. In 6.2, the export works fine, however when I use the same code to export my chart in 7 I get the following error: "Index (zero based) must be greater than or equal to zero and less than the size of the argument list." The code I'm using is the one based on the examples: mChart.Export(FileFormat.Xml, @"C:\mychart.xml"); Not sure if there's anything else that needs to be set up in in 7 for the export to work. Exporting the same chart as a binary works fine. my chart version is 7.0.2893.24916 Part of the exported file is shown below: <STUDYUCL type="ChartFX.WebForms.Statistical.StudyConstant"> <TEXT>UCL</TEXT> <ID>43782</ID> <VISIBLE>True</VISIBLE> <LINEWIDTH>1</LINEWIDTH> <SHOWLABEL>True</SHOWLABEL> </STUDYUCL> </ITEM8> <ITEM9 type="ChartFX.WebForms.Statistical.NPChart" assembly="ChartFX.WebForms.Statistical, Version=7.0.2893.25240, Culture=neutral, PublicKeyToken=a1878e2052c08dce"> <STUDYMEAN type="ChartFX.WebForms.Statistical.StudyConstant"> <ID>43780</ID> <VISIBLE>True</VISIBLE> <LINEWIDTH>1</LINEWIDTH> <SHOWLABEL>True</SHOWLABEL> </STUDYMEAN> <STUDYLCL type="ChartFX.WebForms.Statistical.StudyConstant"> <TEXT>LCL</TEXT> <ID>43781</ID> <VISIBLE>True</VISIBLE> <LINEWIDTH>1</LINEWIDTH> <SHOWLABEL>True</SHOWLABEL> </STUDYLCL> <STUDYUCL type="ChartFX.WebForms.Statistical.StudyConstant"> <TEXT>UCL</TEXT> <ID>43782</ID> <VI You can see where the export fails. I do have the statistical extensions applied. I have also tried using mChart.Extensions.Clear() as mentioned in the forum but still ended up with the same result. Can someone point me in the correct direction? Cheers.
  5. Hi, I have a web app that uses CharFX.Internet class that creates a wrapper to set the properties of a chart e.g. data source. The chart settings are quite large, hence it is not feasible to set up the wrapper to cater for everything. As a result, I've decided to implement a "designer" type functionality to set up the chart visuals without loading any "real" data. Is there a function that allows the export of visual settings on the client side and then importing the visuals on the server side? The purpose is that my web app has a design mode and a run mode. In design mode you can set up all the settings and data series while in run mode it populates the chart with the appropriate settings. I've looked into the Export/Import function but that is server side code. I could use an ajax style functionality to run some code, but I'm not sure how to fire off an event. See next point. I've tried creating a custom action for the toolbar, but the online documentation seems to be incomplete. It cuts off at setting up the handler function. I've looked at the "Save My Chart" function on the toolbar, but that saves the settings against the current user and would not repeat for muliple users. If anyone has any ideas on a way forward or have come across a similar problem, any help would be appreciated. Cheers.
  6. Hi Frank, I've read that article, as it was the first thing I found in the resource center and I have followed what was mentioned. What I meant about adding it to the trusted zone was giving it full trust according to the article. I did not have the latest service pack when I raised the question. I do now, and the problem still persists.
  7. Hi Frank, Thanks for the reply. I was hoping for a more detailed answer. I understand that it's a security problem, but not sure what problem it is. I've added Chart FX to be in a trusted zone with full trust, given ASPNET user full access to the Chart FX directory. Not sure what else I can do. As I mentioned in my earlier post, editing the numbers is fine. However, editing the labels throws this error. So I'm a bit stupmed on the different security settings for something that is almost the same. Hope you understand my problem a little better and thanks again for the reply.
  8. Hi All, I'm having this problem, when modifying data points using the data editor, the chart updates fine, however, when I try modifying the label, I get this error: ************** Exception Text **************System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Drawing.Graphics.FromHwnd(IntPtr hwnd) at SoftwareFX.ChartFX.Internet.Base.GraphicsEx.FromScreen() at SoftwareFX.ChartFX.Internet.Client.LabelList.set_Item(Int32 i, String value) at SoftwareFX.ChartFX.Internet.Client.DataEditor.E3(String 1XX) at SoftwareFX.ChartFX.Internet.Client.DataEditor.DY(Object 1XM, EventArgs 1XN) at System.Windows.Forms.Control.OnLostFocus(EventArgs e) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.TextBoxBase.WndProc(Message& m) at System.Windows.Forms.TextBox.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)The action that failed was:DemandThe type of the first permission that failed was:System.Security.Permissions.SecurityPermissionThe Zone of the assembly that failed was:Trusted Has anyone experienced this before or know of a solution to this, your help will be appreciated.
×
×
  • Create New...