Jump to content
Software FX Community

peterz

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by peterz

  1. Thanks for the prompt reply Frank. Any idea when the next servie pack will be out? I am very close to release and wnat to know if I should wait for the fixed version. Thx.
  2. Any of the CFX support folks able to reproduce this? My environment is xp pro sp2, vs 2008, ChartFX.WinForms.dll version 7.0.2893.24916 Thanks for any help.
  3. Doing this does not remove the gallery selection from the chart's properties dialog's combo box on the Series tab. How do I remove or disable it there?
  4. 1. Is it possible to combine the Histogram and Ogive (ie. cumulative probability) gallery types on one chart? Ideally the Histogram would be on the Y1 axis and the Ogive on the Y2 axis. 2. When using the Histogram gallery type, ist here a way to change the "tooltip" that shows the percentages of each limit line? Ideally I want to do two things. Change the value so it shows some decimals and add the actual intrval value at that point in addition to the cumulative percentage. Any help appeciated.
  5. If I have a histogram chart showing the distribution of my sample data (one series), how can I add a second series that will show the cumulative probability at each interval as a line series? Is there a custom study that already does this? If not how do I add the cumulative prob. series?Please delete my other thread on this topic.
  6. Let me try again. If I have a histogram chart showing the distribution of my sample data (one series), how can I add a second series that will show the cumulative probability at each interval as a line series? Is there a custom study that already does this? If not how do I add the cumulative prob. series?
  7. Whoa, not sure what is going on with the forum SW but it seemed to not like my use of the word C U M (as in cumulative) and replcaed iot with ***. The previous post should read cumulative probability instead of *** probability. Sorry if I offended any one.
  8. If I have a histogram chart showing the distribution of my sample data (one series), how can I add a second series that will show the cum probability at each interval as a line series? Is there a custom study that already does this? If not how do I add the cum series?
  9. When using the annotation toolbar and trying to draw a polygon, I can generate an exception. The below code is sufficienct to demostrate the issue. Exception output is below the code. public Form1() { InitializeComponent(); chart1.ToolBar.Visible = true; chart1.LegendBox.Visible = true; chart1.DataGrid.ReadOnly = false; // allow data changes chart1.AllowDrag = true; // allow data changes by dragging points // this adds the annotations toolbar Annotations annotations = new Annotations(); annotations.EnableUI = true; annotations.ToolBar.Visible = true; chart1.Extensions.Add(annotations); }Here are the steps to generate the crash:- run the sample app attached- press the polygon toolbar button- cursor is a cross hairs- click on the chart area and release the mouse button (don't drag)- move the mouse and click again (no drag)- I get the below: System.Reflection.TargetInvocationException was unhandled Message="Exception has been thrown by the target of an invocation." Source="mscorlib" StackTrace: at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at ChartFX.WinForms.ExtensionCollection.a(d A_0, Enum A_1, Object[] A_2) at ChartFX.WinForms.ag.f(MouseEventArgs A_0) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at Cfx7TestApp.Program.Main() in C:\_Data\Test Code\Cfx7TestApp\Cfx7TestApp\Program.cs:line 17 at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
  10. A previous version of the CFX control (98 IIRC) had a Help button on the Properties dialog. Pressing it would bring up an end user help file. Is there an option to do this with the CFX 7 control? Or any other way to bring up a end user help file?
  11. Here is a more compete code snippet: Statistics stats = new Statistics(); stats.Chart = chart1; chart1.GalleryAttributes = stats.Gallery.Regression; stats.Studies.Add(StudyGroup.XYCorrelation); chart1.Commands[CommandId.Gallery].SubCommands.Clear(); chart1.Commands[CommandId.Gallery].Enabled = false;
  12. How can I disable the analysis gallery commands for the statistical extnesion? I am using this code: chart1.Commands[CommandId.Gallery].SubCommands.Clear(); chart1.Commands[CommandId.Gallery].Enabled = false; But when I right click on a series I can still see the stats gallery types in the context menu. How can I remove or disable them? I'm trying to lock down the gallery type and and prevet the use r from changin it.
  13. If I understand user commands correctly, the only way I can add a user command to the chart's toolbar or one of its context menus is to first add the user command to the chart's Commands collection. Is that correct? But in my case I have a need for the user commands to be dynamic, ie. the list of user commands may change over the lifetime of the chart. Some will be added and others will need to be removed. And I may need to repeat that cycle, including re-adding the same commands. How can I remove a user command added to the chart's Commands collection? I see no API exposed to allow that.
  14. Thanks for the clarification, looks like I will removing the custom commands and re-adding after the export completes.
  15. Anyone have an answer for this? Is the question not clearly enough stated?
  16. I have a chart to which I added some custom commands. The commands are visible on the toolbar. I want to export the chart but prevent the custom commands from getting serialized to the blob (I'm using the Binary export format). Is there a way to do this without deleting the custom commands prior to the export? I had look at the FileContents property but none of the enum values seem like they will do what I need. How do I filter the custom commands from the export file?
  17. Thanks Frank, that worked. I thought I had tried setting the flag to true but that must have been with differnet code.
  18. I'm trying to use the HitTest method to detemine the chart object the mouse is over while dragging something onto a chart. The results are not what I expected. Here is my scenario using the ChartFx MouseEvents sample: 1. Set AllowDrop = true in Form1_Load 2. Add this code to Form1: protected override void OnDragOver(DragEventArgs e) { Point point = chart1.PointToClient(new Point(e.X, e.Y)); HitTestEventArgs ht = chart1.HitTest(point.X, point.Y); System.Diagnostics.Debug.WriteLine(string.Format("HitType={0} ({1}, {2})", ht.HitType, ht.AbsoluteLocation, point)); e.Effect = DragDropEffects.Copy; } 3. Run the sample. 4. Move the mouse (no drag yet) to the bottom left corner of the axes intersection (ie. 0, 0 -- the origin). 5. Note the Mouse Position value, I see 67,264 and the Chart Element is Axis: Main X Axis 6. Now drag some data (ie. text from any drag enabled source) to the same point -- don't drop it, just move the drag cursor so it points to the origin. 7. Note the debug output in the IDE, I see x=74, y=271 The location of point and ht.AbsoluteLocation are always off by 7 pixels. What am I doing wrong with the call tto HitTest?
  19. Never mind...setting study.Visible = false solved my problem.
  20. Is there a way to add a custom study to the stats legend box that will not have a checkbox? I set the Interactive property to false but all that does is disable the checkbox. How do I make the checkbox disappear altogether?
  21. Got it, works great, thanks Frank.
  22. What is the trick to set a series' Y axis to AxisY2 when the series is in a pane other than the first pane? I seem to only be able to set the AxisY2 for series that are on the first pane. Below is my code, results are not what I expected. chart1.Data.Series = 4; chart1.Panes.Add(new Pane()); chart1.Series[0].Pane = chart1.Panes[0]; chart1.Series[1].AxisY = chart1.AxisY2; chart1.Series[1].Pane = chart1.Panes[0]; chart1.Series[2].Pane = chart1.Panes[1]; chart1.Series[3].AxisY = chart1.AxisY2; // this does not seem to work chart1.Series[3].Pane = chart1.Panes[1];
  23. With ChartFx.Net 6.2 (Winforms) I could do this: Statistics stats = new Statistics(); stats.Chart = chart1; chart1.GalleryObj = stats.Gallery.Histogram; // this works with cfx 6.2 I tried using this to no avail: chart1.Gallery = stats.Gallery.Histogram; // this fails with cfx 7 How do I do the same thing in ChartFx.Net 7 (Winforms)?
  24. peterz

    Winforms interop

    I should have added that when I created my own WPF UserControl from scratch and hosted that in my app, my user control worked fine.
×
×
  • Create New...