I have an ultraChart that has three data series. The chart types are ScatterChart, set on the same chart Area, using the same x-axis and y-axis. I want to overlay these three series on some specified image(s).
However, no matter what settings I adjust...I CAN NOT make the ultraChart transparent! I need everything to be transparent, except for the data. I've tried setting the following:
this.ultraChart1.Axis.BackColor = Color.Transparent;
this.ultraChart1.BackColor = Color.Transparent;
Along with every setting inside the chart wizard that I can find to be transparent.
Does anyone have any ideas?
I've attached a sample project so you can see exactly what I've done!
Thanks in advance for any help anyone can give to help me solve this issue.
Hi Ahmad,
Thanks for your reply. However, I'm programming it in C#, not VB. I'm not sure if it makes any difference.
I receive an error when I try to set the BackgroundImageStyle = False...it requires an Infragistics.UltraChart.Shared.Styles.ImageFitStyle...not a boolean. I only have the choice of setting that BackgroundImageStyle = {Centered, StretchedFit, Tiled}.
I am still unable to make the x-axis and y-axis disappear...as they are not necessary!
Cheers,
Amy
Hi Amy Quigg
i m vb.net developer i make transparent the ultrachart please see the code i hope that will be helpful to you
'TODO: This line of code loads data into the 'AHMADDataSet.person' table. You can move, or remove it, as needed. 'for background transparent Me.UltraChart1.BackColor = Color.Transparent Me.UltraChart1.Axis.BackColor = Color.Transparent 'for xaxix tranparent Me.UltraChart1.Axis.X.LineColor = Color.Transparent 'for y axix transparent Me.UltraChart1.Axis.Y.LineColor = Color.Transparent 'for BackgroundImageStyle nothing Me.UltraChart1.BackgroundImageStyle = False
IF u need more help please contact me at below link
http://ahmadkhalid44.blogspot.com/
Regards:
Ahmad Khalid
Software Engineer
I know you said there is not an answer...but this is not an option!
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 control Graphics g = control.CreateGraphics();
//new bitmap object to save the image Bitmap bmp = new Bitmap(control.Width, control.Height);
//Drawing control to the bitmap control.DrawToBitmap(bmp, new Rectangle(0, 0, control.Width, control.Height));
return bmp; }
Hello Amy,
I believe that this topic has already been discussed in the following forum thread: http://es.infragistics.com/community/forums/t/31553.aspx.
Please feel free to let me know if a question about our tool set comes up on your mind.