Jump to content
Software FX Community

Frank

Staff
  • Posts

    1,761
  • Joined

  • Last visited

Posts posted by Frank

  1. Are you setting these DateTime vlaues to the X-Values of the chart of to the X-Axis labels (strings).

    If you are using them as X-Values, there is no gurantee that the labels in the X-Axis will match those in your data. The X-Axis shows a Min and a Max and labels in between at even intervals. This interval is called the Step and can be left automatic (default) or can be controlled using AxisX.Step.

    If you are setting the DateTime values as c-axis labels, then the chart will show as many as possible without overlap.

    In either case, the number of labels displayed is constrained by the available screen realstate.

    post-7036-13922412988287_thumb.png

  2. It may be a timing issue. Where in the page lifecycle are you executing this code? Make sure it is done before any rendering occurs. If you are already doing it in an event that's prior to any rendering, please post a sample app that reproduces the problem.  Your code works on my end when I paste it in my Page_Load handler.

  3. By setting:

    e.args.Handled = true;

    You are preventing everything that was going to be done on that event from executing. In this case this includes clearing the flag that says the selection rectangle is vissible.

    In order to make this work, you also set the Handled property to true in the MouseDown event and handle the draing of the selection rectangle in your MouseMove/PostPaint event handlers.

    Another option is that instead of zooming-in right away when you get the call to MouseUp, let the library take its course and perform the regular zoom, then by using a timer or a PostBack message thta gets fired on MouseUp, adjust it according to your needs.

     

  4. The foolowing KB article explains why you are getting this error and how to solve it:

     Q6101008. Using Chart FX for .NET Windows Forms control from a DLL

    This article discusses deployment and licensing issues that occur when you use Chart FX for .NET Windows Forms component from a DLL instead of using it directly from an executable.

    URL: http://support.softwarefx.com/ShowArticleSep.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/610/1/008.htm?_r=1

     

×
×
  • Create New...