Weekends Posted November 17, 2009 Report Share Posted November 17, 2009 Hi! Does anyone know some way of displaying an image within plot area of a 3D ChartFX chart? Basically, I need to display a message to the user under certain conditions, which will be displayed as an image background of chart plot area. 2D charts are fine with this but the ones I am working with have to be 3D. I know PlotArea property cannot be assigned when using 3D charts. Does anybody know of some workaround? Any help appreciated! Quote Link to comment Share on other sites More sharing options...
juanZ Posted November 17, 2009 Report Share Posted November 17, 2009 Hi, I made a test with this code. Let me know if it helped. private void button1_Click(object sender, EventArgs e) { this.chart1.View3D.Enabled = true; ChartFX.WinForms.Adornments.ImageBackground imageBackground1 = new ChartFX.WinForms.Adornments.ImageBackground(); imageBackground1.Image = Bitmap.FromFile(@"C:\YourSamplePicture.jpg"); this.chart1.Background = imageBackground1; } Quote Link to comment Share on other sites More sharing options...
Weekends Posted November 18, 2009 Author Report Share Posted November 18, 2009 Thanks Juan but this sets background of the whole chart and not just the plot area of chart. For the sake of consistency the image has to be in chart's plot area. BubbleCharts.zip Quote Link to comment Share on other sites More sharing options...
juanZ Posted November 18, 2009 Report Share Posted November 18, 2009 I see. hmmm well I don't know a workaround for this. Even if you use an image annotation, this one will be on top of the series. Quote Link to comment Share on other sites More sharing options...
Weekends Posted November 18, 2009 Author Report Share Posted November 18, 2009 You are right, image annotation wouldn't work in this case. Have decided to show message in a label below the chart at the cost of consistency. However, chart will be tucked away inside tabbed control, so hopefully that would mitigate the lack of consistency. Thanks anyways for your help, appreciate it! Okash Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.