Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/09 14:42:21 (15 years ago)
Author:
gkronber
Message:

Improved layout and rendering of bubble chart. #686 (More compact layout of controls in the CEDMA bubble chart control)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Charting/3.3/BubbleChart.cs

    r2133 r2135  
    111111      Repaint();
    112112      EnforceUpdate();
     113    }
     114
     115    public override void Render(Graphics graphics, int width, int height) {
     116      graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
     117      base.Render(graphics, width, height);
    113118    }
    114119
     
    160165            actualXValues.Add(subEntry.Get(path.ElementAt(1)));
    161166          }
    162         } else {
    163           xs.Add(double.NaN);
    164           actualXValues.Add("NaN");
    165167        }
    166168        if (results.OrdinalVariables.Contains(yDimension)) {
     
    184186            actualYValues.Add(subEntry.Get(path.ElementAt(1)));
    185187          }
    186         } else {
     188        }
     189        if (xs.Count() == 0) {
     190          xs.Add(double.NaN);
     191          actualXValues.Add("NaN");
     192        }
     193        if (ys.Count() == 0) {
    187194          ys.Add(double.NaN);
    188195          actualYValues.Add("NaN");
     
    228235
    229236    private int CalculateAlpha(int size) {
    230       return maxAlpha - (int)((double)(size - minBubbleSize) / (double)(maxBubbleSize - minBubbleSize) * (double)(maxAlpha - minAlpha));
     237      return (minAlpha + maxAlpha) / 2;
    231238    }
    232239
Note: See TracChangeset for help on using the changeset viewer.