Articles in this section
Category / Section

How to display an image as the background of the chartarea in WinForms Chart?

3 mins read

To display an image as the background of the chart area in a Syncfusion® WinForms Charts, you can create a new Image object with the image's filename and assign this object to the ChartAreaBackImage property of the chartControl.


C#

this.chartControl1.ChartAreaBackImage = Image.FromFile("D:\\WinForms\\Winforms_Chart_Sample\\images\\frame1.png");
this.chartControl1.ChartAreaMargins = new ChartMargins(170,170,170,170);

VB

columnChart.ChartAreaBackImage = Image.FromFile("D:\\WinForms\\Winforms_Chart_VBSample\\images\\frame1.png")
columnChart.ChartAreaMargins = New ChartMargins(170, 170, 170, 170)

Output:

display an image as the background chart area


Conclusion

I hope you enjoyed learning about how to display an image as the background of the ChartArea in WinForms Chart.

You can refer to our WinForms Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications. You can also explore our WinForms Chart examples to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you! 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied