Hi,
I'm new to the Infragistics products and have three questions regarding the UltraChart component:
Any help is appreciated.
1). this.UltraChart1.Axis.Y.Extent = 100;
this.UltraChart1.Axis.X.Extent = 100;
2). this.UltraChart1.BackColor = Color.Transparent;
this.UltraChart1.Axis.BackColor = Color.Transparent;
3). this.UltraChart1.DeploymentScenario.ImageType = ImageFormat.Png;
Just to add that IE 6.0 doesn't support trancparency by default.
http://support.microsoft.com/kb/294714
I'm still having trouble with the Extent property. I've tried setting it to 100 to 10 and it doesn't seem to affect the amount of padding separating the actual chart to the edge of the image. In fact, there isn't a difference in how my chart renders when I change this value. Am I missing something?
Extent property works when the axis is visible. If you are trying changing the Extent property of Y2 axis, just make it visible.
I've come up with another solutions that others may be interested in...creating a background image from the control you are trying to see through the grid...make it your background image!
SO...set your UltraChart.BackgroundImage
UltraChart.BackgroundImage = CreateBitmap(ControlTryingToView);
And add the subroutine to create a bitmap out of a control:
public Bitmap CreateBitmap(Control control){//getthe instance of the graphics from the controlGraphics g = control.CreateGraphics();
//new bitmap object to save the imageBitmap bmp = new Bitmap(control.Width, control.Height);
//Drawing control to the bitmapcontrol.DrawToBitmap(bmp, new Rectangle(0, 0, control.Width, control.Height));
return bmp;}