Jump to content
Software FX Community

Frank

Staff
  • Posts

    1,761
  • Joined

  • Last visited

Posts posted by Frank

  1. If you are using the latest service pack (6.2.3188.26800, tested with .NET 2.0) there shouldn't be any difference using the Framework 1.1 or 2.0.

    If you are still experiencing the problem with this version you will need to contact technical support directly and provide them with details on your environment as well as the type of chart you are creating.

  2. The X-Axis can be one of the following 2:

    - Continuous: In this mode the scale will be continuous and not dictated by the data points but by a range and a step.

    - Discrete/Categorical: The X-Axis is simply a collection of points. There is no fixed relationship between the labels, they are simply strings.

    Some chart type: Bars,Hi-Low-Close,Candlestick and Cubes only support discrete/categorical X-Axis, therefore, if like in your case, the date skips some values, they will be reflected in the X-Axis.

    When your chart contains X-Values and the X-Axis it is categorical, we do what we call "Data Driven Labeling" in which we let the data control the labels on the X-Axis, not the range, but the actual points.

    In a continuous X-Axis, the data is irrelevant. Only the range has an effect on the X-Axis labeling.

    Looks to me that you want to have Data Driven labels, but by default, if your chart is not one of the galleries mentioned above, your X-Axis will be continuous. You can change this by setting:

    chart.ExtraStyle |= ChartStyles.ForceDataDriven;

  3. I don't understand the relationship between this and the legend box (I don't see any legend box in your screenshot, just the chart and the datagrid).

    The behavior of highlighting is different when you have one series than when you have multiple series. This is by design.

    I may not be understanding the problem correctly. You may want to post a series of screenshots showing the discrepancies.

  4. Onse series corresponds to a whole pie. Since each Pie slice is colored independently, the series color is not what will affect it.

    To change the color of a pie slice you can set:

    chart.Points[pointIndex].Color = myColor;

    if you want to share the same color for the ith slice of every series, or

    chart.Points[seriesIndex,pointIndex].Color = myColor;

    if you don't.

  5. Yes. Take a look ad Data.CompactedBy (http://support.softwarefx.com/OnlineDoc/cfxNet70//WinAPI/DataValues_CompactedBy.htm)

    This will help if the performance degradation comes from drawing the chart. If the degradation comes from obtaining data from your datasource, then it will not and you will have to devise a strategy for filtering your data before bringing it to the client (e.g. in SQL). You can always capture Zoom events to repopulate the chart with a new set of points.

×
×
  • Create New...