Jump to content
Software FX Community

MMCCPaulEden

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by MMCCPaulEden

  1. Seeing as I seem to be unable to edit my own post, exception example as follows (reference to chartFX is bold/underline as no colouring easily available). In this instance the exception was thrown when exporting the object to a PNG with Size(150,120). This is causing us a quite major issue as charts regularly need to be resized based on user input, and sized in such as way that no clipping ooccurs (as per usage of chart.PlotArea.MinSize = 0) : 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.Delegate.DynamicInvokeImpl(Object[] args) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run(Window window) at System.Windows.Application.Run() at NTO.App.Main() in C:\Users\Neutrino_1\Documents\Projects\Neutrino\OBM\obj\Debug\App.g.vb:line 75 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() InnerException: System.ArgumentException Message="Width must be non-negative." Source="WindowsBase" StackTrace: at System.Windows.Rect.set_Width(Double value) at ChartFX.WPF.Controls.SpacingDockPanel.ArrangeOverride(Size finalSize) at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect) at System.Windows.UIElement.Arrange(Rect finalRect) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.AnimatedRenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout) at System.Windows.Threading.DispatcherOperation.Wait() at ChartFX.WPF.Chart.a(BitmapEncoder A_0, Stream A_1) at ChartFX.WPF.Chart.Export(FileFormat format, Stream stream) InnerException:
  2. Hi We are seeing some strange behaviour when sizing chart controls: If the chart is reduced too far, an exception is thrown saying the heigh / width cannot be a negative number - this is thrown from the ChartFx dlls, not the framework and possibly related to the usage of chart.PlotArea.MinSize = 0; Do the charts try to default to a specific size if no size is set / size is auto? Many thanks Paul Eden
  3. Hi Juan Thanks for taking a look at this. Based on your post we've had to accept the fact that the chart will need to be populated + exported on the GUI thread, though If you folks are able to get it to work we will be very interested Regards Paul
  4. I have a chart object as a shared varible on an object that I intend to reuse to generate multiple chart images. The image generation is required to run in a separate thread from the GUI. The proces currently follow this path: Chart object instantiated in GUI thread (as framework will not allow me to create it in a non-STA way) Separate thread fires to process data, populating the chart object (just with title for simplicity). when chart is populated, call the Export method All is fine up to the export at which point an InvalidOperationException is thrown, because a different thread owns the object. Can you suggest any way round this, given that I can add titles to the object quite happily? Many thanks Paul
  5. For info, we used to have the charts rendering at 200x200, or even 100x100 and no clipping occurred (just very scrunched). Currently working on sample as time permits. Paul
  6. Hi I was trying to set the title of the series listed in the legend box (they default to "Series 1" "Series 2" etc.) but seem unable to do so - I tried the example listed under the associated help file entry but that seems to be bugged. Any hints? ta
  7. As an update, having switched to the Basic style as per the performance thread, the labeling issue is still there but not to the same extent.
  8. Hi I can't say at present if it is on the first or all instances as I only have summary timings in place, but after switching to the basic style performance returned to the pre-v2 levels. High-end machines with a better graphics card my be able to deal with DirectX rendering better, but currently I'm developing on a laptop with a Mobile Intel 956 Express chipset. Paul
  9. Hi I tried setting the MinSize property to 0, but this seemed to have no effect - shrinking the chart below a 380 x 280 area still seems to cause clipping. Thanks Paul
  10. Hi Juan Thanks for the fast reply - I tried the Gantt chart and this orients the graph nicly. The only side effect is that the x-axis labels, as they are right aligned, tend to be obscured by the actual chart bars. Extending the width of the chart merely increases the size of the chart bars rather than giving more space to the labels. Is there a property I can set to change this or is it something that you folks would need to do for a subsequent release? Thanks Paul
  11. Hi Is it possible to orient bar charts to be horizontal rather than vertical? Thanks Paul
  12. Hi I've noticed that in this release of the charts there seem sto be a minimum size at wich the chart with proerly display itself, below which clipping occurrs. I tried using the MinHeight and MinWidth properties but this is too small and clipping occurs - the DesiredSize property produces a chart that is... giant, to say the least. Is there a property that I can consume that will give me usable sizings? Many thanks Paul
  13. Hi I just switched to the beta2 DLLs and have noticed a marked performance decrease with control instancing - almost double. We have fairly chart intensive screens and a once that used to take 7 seconds to process now takes around 15 seconds. Has this been experienced by anyone else? Many thanks Paul
  14. 0.8.3090.32567 - received 2008-06-19 (installed today though)
  15. If you look at all the pages in this forum, you'll find that no post regarding documentation has ever been replied to...
  16. As a reference point to other users: 0.8.3065.20832 - received 2008-05-27 If anyone gets a more recent version than listed in here, please feel free to post an update so we all know there's a new version available. Thanks Paul
  17. Ah - probably best to email thier WFP address to request updated version as a first step then have another go. Seeing as they don't seem interested in doing it themselves I'll post in http://community.softwarefx.com/forums/t/9366.aspx with my current version as a reference along with the date I got it. Paul
  18. What version are you using currently? I have 0.8.3065.20832 Paul
  19. Hi Can help with the series color issue - you'll need to call series.fill to set the individual series color, or chart.allseries.fill to effect all created series. I dont't know if setting on the individual series would override a color set by allseries, but I assume it would. Also, to set the point symbol you'd need to use series.marker = MarkerShape.X This might be setable on the allseries property off of the chart instead of on each individual series. Paul
  20. OK, thanks for that - I now have data on my chart from an object. I am now having similar issues to someone else on here regarding multiple series and axis labeling - if I use 1 series and set the .AxisX.Labels.Binding property to the relevent property on the data object, it works fine. Adding a second series makes the labels fail to appear. Are you able to assist on this? Many thanks Paul
  21. Hi Can anyone comment on when the WPF ChartFX components will go into a production release? Many thanks Paul
  22. Hi A couple of times I've been advised to email the WFP address in order to get a new DLL - is there a mailing list or a thread that people can subscribe to in order to get notifications of new DLL availability? This would reduce the number of threads that are solvable by getting a newer version. I guess it would also make sense to state in subject lines the version of DDL you're working with? Many thanks Paul
  23. Is no-one from SoftwareFX able to comment on this? Thanks Paul
×
×
  • Create New...