I managed to put together some code that works --- BUT it only works with antialias turned off. (And, the bubbles look VERY bad without antialiasing.
Here's the code:
Code: Select all
Set rs = GetBubbleRS("Unit", "CEO", "")
With TChart1
.Aspect.View3D = False
';.Canvas.UseAntiAlias = True
With rs
Do While Not .EOF
ctr = ctr + 1
TChart1.Series(0).asBubble.AddBubble !LS, !LL * 100, 2.5, !Item, RGB(0, 0, 255)
TChart1.Series(0).asBubble.RadiusValues.Value(ctr - 1) = 0.15
.MoveNext
Loop
End With
.Series(0).asBubble.Pointer.Gradient.Visible = True
tmp = .Axis.Left.CalcXSizeValue(.Series(0).asBubble.RadiusValues.First)
.Axis.Bottom.MinimumOffset = tmp * (1 + 0.4)
tmp = .Axis.Left.CalcXSizeValue(.Series(0).asBubble.RadiusValues.Last)
.Axis.Bottom.MaximumOffset = tmp * (1 + 0.4)
tmp = .Axis.Left.CalcXSizeValue(.Series(0).asBubble.RadiusValues.First)
.Axis.Left.MinimumOffset = tmp * (1 + 0.4)
.Axis.Bottom.Labels.Style = talValue
.Zoom.Enable = False
End With
But, if I uncomment this line:
Code: Select all
.Canvas.UseAntiAlias = True
Is this a known bug?
How can I have antialiasing on without messing up the Click?