Jump to content
Software FX Community

Plotarea background image on 3D chart


Weekends

Recommended Posts

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!

Link to comment
Share on other sites

 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;   }

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...