- Timestamp:
- 07/06/09 14:42:21 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Charting/3.3/BubbleChart.cs
r2133 r2135 111 111 Repaint(); 112 112 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); 113 118 } 114 119 … … 160 165 actualXValues.Add(subEntry.Get(path.ElementAt(1))); 161 166 } 162 } else {163 xs.Add(double.NaN);164 actualXValues.Add("NaN");165 167 } 166 168 if (results.OrdinalVariables.Contains(yDimension)) { … … 184 186 actualYValues.Add(subEntry.Get(path.ElementAt(1))); 185 187 } 186 } else { 188 } 189 if (xs.Count() == 0) { 190 xs.Add(double.NaN); 191 actualXValues.Add("NaN"); 192 } 193 if (ys.Count() == 0) { 187 194 ys.Add(double.NaN); 188 195 actualYValues.Add("NaN"); … … 228 235 229 236 private int CalculateAlpha(int size) { 230 return maxAlpha - (int)((double)(size - minBubbleSize) / (double)(maxBubbleSize - minBubbleSize) * (double)(maxAlpha - minAlpha));237 return (minAlpha + maxAlpha) / 2; 231 238 } 232 239
Note: See TracChangeset
for help on using the changeset viewer.