Skip to content

Commit

Permalink
Create and Edit Charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurmitha4004 committed Oct 14, 2024
1 parent 6f6c0c3 commit 15292b9
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.IO;
using Syncfusion.Drawing;
using Syncfusion.XlsIO;
using Syncfusion.XlsIO.Implementation.Shapes;

namespace Picture_Fill
{
Expand Down Expand Up @@ -30,9 +31,17 @@ static void Main(string[] args)
//Set picture fill to chart area
chart.ChartArea.Fill.UserPicture(image1, "Image");

//Setting offset to chart area fill picture
Rectangle chartarea = Rectangle.FromLTRB(5000, 6000, 7000, 8000);
(chart.ChartArea.Fill as ShapeFillImpl).FillRect = chartarea;

//Set picture fill to plot area
chart.PlotArea.Fill.UserPicture(image1, "Image");

//Setting offset to plot area fill picture
Rectangle plotarea = Rectangle.FromLTRB(5000, 6000, 7000, 8000);
(chart.PlotArea.Fill as ShapeFillImpl).FillRect = plotarea;

//Set picture fill to series
serie1.SerieFormat.Fill.UserPicture(image2, "Image");
serie2.SerieFormat.Fill.UserPicture(image2, "Image");
Expand Down

0 comments on commit 15292b9

Please sign in to comment.