Jump to content
Software FX Community

VekiPeki

Members
  • Content Count

    29
  • Joined

  • Last visited

Community Reputation

0 Neutral

About VekiPeki

  • Rank
    Member
  1. Hi, did you manage to fix this? We are having this same problem in Cfx 7 for WinForms. It happens sometimes when we zoom a part of a chart. Chart is divided into 2 panes. Stack trace indicates that the exception is thrown sometimes during text rendering: at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format) at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, Single x, Single y, StringFormat format) at ChartFX.WinForms.Internal.GraphicsEx.D
  2. Hello. Did you manage to resolve this? I am getting the same error in CFX 7 for WinForms. It happens sometimes when I zoom a part of a chart with multiple panes. Last few lines of the stack trace indicate that problem occurs during some text rendering:Stack trace: at System.Drawing.Graphics.CheckErrorStatus(Int32 status) at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format) at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, Single x, Single y, StringFormat format) at ChartFX.WinForms.Internal.Graph
  3. I am trying to implement a custom zoom solution for ChartFX, and the code looks something like this: private Point startPoint = Point.Empty; // On mouse down, save the starting point void chart_MouseDownEvent(object sender, _ChartEvents_MouseDownEvent e) { startPoint = new Point(e.args.X, e.args.Y); } // On mouse up, zoom to coordinates void chart_MouseUpEvent(object sender, _ChartEvents_MouseUpEvent e) { if (e.args.Button != ButtonLeft) return; // override regular functionality e.args.Handled = true; Point endPoint = new Point(e.args.X, e.args.Y); Axis xAxis = char
  4. We found this problem in both Chart FX Client Server 6.2 and Chart FX 7 (Windows Forms). Chart FX behaves unexpectedly when zooming the chart with multiple panes. In certain cases, zooming in on one of the panes completely messes up the other pane's scroll position. First of all, zooming across two panes will zoom in both panes. This is probably the intended behavior, but we would rather zoom in only the axis which was clicked first. Is it possible to change this behavior easily? The actual problem The problem happens when one of the panes (the upper one) is already zoomed, and y
  5. How do I anchor an annotation to a different pane if I have multiple panes? E.g. this code: Annotation annots = new Annotations(); chart.Extensions.Add(annots); AnnotationArrow arrow = new AnnotationArrow(); annots.List.Add(arrow); // these coordinates are relative to chart.Panes[0] axis arrow.Attach(left, top, right, bottom); will anchor the arrow annotation to Pane[0] (and coordinates must be expressed relative to Pane[0] axis coordinates). Is there a way to attach annotations to a specific Axis or Pane?
  6. Hello! We have a problem drawing area charts using Chart FX 7 for Windows Forms (7.0.3306.26568). The problem is that the area chart is incorrectly rendered when the chart is zoomed and scrolled. We have had this problem earlier with Chart FX Client Server 6.2, but a hotfix for this was never released. Since we presumed that you are no longer maintaining the COM version (and presumed this has been fixed in new versions), we have moved to Chart FX 7, but the same bug occurs nevertheless. This is the code we used: void Form1_Load(object sender, EventArgs e){ ListProvider data = new ListPr
  7. From my experience, their support sucks. You cannot get any help except from other members, with exception for completely trivial questions. COM version is even less supported, and they haven't released a hotfix for 3 years, with several known and annoying bugs still existing. Ahh.. needed to relieve my soul to someone. What error exactly do you get? You could check the event log for example, or the setup log if it exists.
  8. I am sending a simple Test app, hoping that someone will finally reply. It's a .NET C# app using Cfx Client Server 6.2. public Form1() { InitializeComponent(); this.Load += new EventHandler(Form1_Load); } void UpdateChart() { // clear chart chart.ClearData(ClearDataFlag.ClearDataFlag_AllData); // fill list data provider with some data ListDataProviderClass listProvider = new ListDataProviderClass(); object xAxisData = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; object yAxisData = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; listProvider.AddCollec
  9. I found out that this happens if I try to use Axis.Zoom(min, max) or Axis.SetScrollView(min, max), before Chart starts to actually paint itself. It then crashes on next repaint. If I set the axis zoom after the PostPaint event, it will flicker once before it's zoomed, so is there another way I can set the axis zoom programatically, before the chart is painted?
  10. Update: I have added the PrePaint, GetAxisLabel and PostPaint event handlers to see what gets executed, and I can see that when the exception is thrown, only PrePaint gets fired. In other cases, all three events are fired. The exception happens sometimes when I am switching tab pages in my form, just before the chart is painted.
  11. Dear Sirs, My managed application is using Cfx Client Server 6.2 through COM interop. It sometimes closes with an Access violation error. Managed stacktrace looks like this: Using WinDbg, I have found that the exception happens in ChartFX.ClientServer.Core.dll: Unmanaged stack is shown like this (although it may be incorrect since I don't have debug info): Can you tell me if it's possible to find out which .dll function gets called in that moment( in the COM dll)? This usually happens when switching tabs, so I guess it happens during repaint.I hope that by finding this I could nar
  12. It seems that a workaround is to dock a Chart inside a Panel container, and then dock the Panel inside the Form - in that case data is displayed correctly. The problem happens only when Chart is docked inside a window directly (or if anyone still has the problem, then this just may be an indirect workaround).
  13. Hi! Does anyone know how to resolve this? I am having the same problem all morning - chart is displayed when a window is show as non-mdi, but as soon as I set MDIParent, I get the same result as in this post. f1 = (); f1.Show(); but f2 = ();f2.MdiParent = someParentForm; f2.Show();
  14. VekiPeki

    UserLegendBox

    You should not overwrite actual Point object with your own, rather just change their properties, i.e. try to change this: redPoint.Color = RGB(255,0,0)...Chart1.Point(0,j) = redPoint to this: redColor = RGB(255,0,0)...Chart1.Point(0,j).Color = redColor (for all lines where you assign colors)
×
×
  • Create New...