Jump to content
Software FX Community

Frank

Staff
  • Posts

    1,761
  • Joined

  • Last visited

Posts posted by Frank

  1. There is no limitation on the number of requests PSS can handle.

    Please check the event log for any messages from PSS. You can increase the verbosity of these messages by modifying the PSS config file. For more information:

    Q7622021. Troubleshooting the PSS Service

    This article provides valuable information for troubleshooting problems with the PSS service.

    URL: http://support.softwarefx.com/ShowArticle.aspx?Type=KB&Product=CfxNet70&Source=http://support.softwarefx.com/kb/762/2/021.htm?_r=1

  2. You need to change the order of the series. If you know from the begining which series you want on top, then is best just to set the data in the right order. If you are using databinding it is just a mater of changing the order in which you add the fields to the FieldMap collection.

    If you want to dinamically change the order of series after the chart is displayed, you can simple re-arrange the Series collection or usise chart.Series.SendToBack and BringToFront.

  3. This problem is fixed. Notice that labels can be clipped if the MaximumLabelMargin (Pie class) is set to less than 100.

    If yo want to guarantee no labels will be clipped (as long as there is room to show them) set:

    ((ChartFX.WinForms.Galleies.Pie) chart.GalleryAttributes).MaximumLabelMargin = 100;

    Notice that by doing this you are allowing the pie itself to become very tiny in favor of displaying the labels.

  4. You can either process the click event which will generate a postback (or callback) to your form or you can set the Link property to point to a different Url, for example:

     chart1.AllSeries.Link.Url = "http://www.softwarefx.com"

    You can use macros in this URL using the '%' sign. See API reference on Link.Url for details.

    You can also assign different Url for each series:

    chart1.Series[0].Link.Url = "http://www.softwarefx.com";

    chart1.Series[1].Link.Url = "http://support.softwarefx.com";

  5. Are you attaching these annotation objects to logical (Axis) X/Y values?

    My guess is that you are attaching them incorrectly. If your Line charts has X/Y values, the attached value must be relative to the X-Axis scale. Bar charts always have a categorical X axis, therefore, the X-Axis Attachment for annotation objects is relative to the index of the point, not the X-Axis scale.

  6. The default background is a Gradient Background. 

    To set a plain background do:

    chart1.Background =

    null;

    The default background color is dependant on the palette. To change it to a specific color (not dependant on the palette) do:

     chart1.BackColor= <color>;

    To turn scrolling on and off(default):

    chart.AxisX.AutoScroll = true/false;

    Notice that the scrollbar will only show if there is a need for it.

  7. Like most WindowsForm controls, painting only occurs when the message queue is proceessed, that is when the UI thread is "idle". Multiple serialized calls to multiple APIs, in the same thread, will NOT generate multiple re-paints.

    You need to measure whether the time is being spent setting the data or draing it by measuring the time spent from when you start setting the data to when you finish. This time is not related to the Paint time. You can either use a profiler or some good-old time APIs like System.Diagnostics.StopWatch.

    Paint time is harder to measure because painting is not started by your (user) code but by the WM_PAINT event sent by Windows. The PrePaint and PostPaint event mayu help you measure this time.

    The approach for improving these is very different:

    For the first case, the performance can be improved by either improving the speed at which your data is retrieved or by minimizing the time Chart FX takes to process it. The only think here that Chart FX does that can have an inpact in the performance is the reallocation of memory. This can be dramatically improved by simply telling the chart how many series and points are there going to be in the chart in advance.

     Improving painting time will involve some compromises on how the chart looks. Some graphics elements like circles and lines are inherently slower than others like rectangles. Reducing the number of graphics elements drawn, like borders, etc will also have a big impact.

  8. You need to series, one for bananas and one for oranges.

     

    Depending onhow your data is organized (if you are using Data Binding) one of the following two options will be the one for you:

    1) If your data comes in the following form:

    Date   Bananas Oranges

    1/1/2009  100 200

    1/2/2009 200 350

    ....

    Then all you have to do is bind the chart to this table. The default bindings will do what you need.

    2) If your data comes in the following format:

    Date   Fruit Sales

    1/1/2009 Bananas   100

    1/1/2009  Oranges 200

    1/2/2009  Bananas 200

    1/2/2009  Oranges 350

    ...

    Then you canuse the CrossTabdata provider (see resource center for more info).

    In either case, you can use the Data Wizard at design-time to guide you through the process.

×
×
  • Create New...