Skip to content

Commit

Permalink
Scatter chart Excel Support update
Browse files Browse the repository at this point in the history
  • Loading branch information
DraviaVemal committed May 26, 2024
1 parent ca1176a commit d1b0594
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<OutputPath>..\bin\</OutputPath>
<Authors>DraviaVemal</Authors>
<Version>2.7.0-Alpha.28</Version>
<Version>2.7.0</Version>
<Company>DraviaVemal</Company>
<Copyright>Copyright (c) 2023 DraviaVemal
Permission is hereby granted, free of charge, to any person obtaining a copy of this
Expand Down
134 changes: 130 additions & 4 deletions Tests/Spreadsheet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ public void AddAllCharts()
}
}
});
excel.RemoveSheet("Sheet1");
worksheet.AddChart(new()
{
cellIdStart = "A1",
Expand Down Expand Up @@ -667,7 +668,6 @@ public void AddAllCharts()
cellIdEnd = "F4"
}, new ScatterChartSetting<ExcelSetting>()
{
scatterChartType = ScatterChartTypes.SCATTER,
applicationSpecificSetting = new()
{
from = new()
Expand All @@ -677,11 +677,137 @@ public void AddAllCharts()
},
to = new()
{
row = 5,
row = 20,
column = 20
}
}
});
worksheet.AddChart(new()
{
cellIdStart = "A1",
cellIdEnd = "F4"
}, new ScatterChartSetting<ExcelSetting>()
{
scatterChartType = ScatterChartTypes.SCATTER_SMOOTH,
applicationSpecificSetting = new()
{
from = new()
{
row = 21,
column = 5
},
to = new()
{
row = 35,
column = 20
}
}
});
worksheet.AddChart(new()
{
cellIdStart = "A1",
cellIdEnd = "F4"
}, new ScatterChartSetting<ExcelSetting>()
{
scatterChartType = ScatterChartTypes.SCATTER_SMOOTH_MARKER,
applicationSpecificSetting = new()
{
from = new()
{
row = 36,
column = 5
},
to = new()
{
row = 50,
column = 20
}
}
});
worksheet.AddChart(new()
{
cellIdStart = "A1",
cellIdEnd = "F4"
}, new ScatterChartSetting<ExcelSetting>()
{
scatterChartType = ScatterChartTypes.SCATTER_STRAIGHT,
applicationSpecificSetting = new()
{
from = new()
{
row = 5,
column = 22
},
to = new()
{
row = 20,
column = 37
}
}
});
worksheet.AddChart(new()
{
cellIdStart = "A1",
cellIdEnd = "F4"
}, new ScatterChartSetting<ExcelSetting>()
{
scatterChartType = ScatterChartTypes.SCATTER_STRAIGHT_MARKER,
applicationSpecificSetting = new()
{
from = new()
{
row = 21,
column = 22
},
to = new()
{
row = 35,
column = 37
}
}
});
worksheet.AddChart(new()
{
cellIdStart = "A1",
cellIdEnd = "F4"
}, new ScatterChartSetting<ExcelSetting>()
{
scatterChartType = ScatterChartTypes.BUBBLE,
applicationSpecificSetting = new()
{
from = new()
{
row = 36,
column = 22
},
to = new()
{
row = 50,
column = 37
}
}
});
worksheet.AddChart(new()
{
cellIdStart = "A1",
cellIdEnd = "F4"
}, new ScatterChartSetting<ExcelSetting>()
{
scatterChartType = ScatterChartTypes.BUBBLE_3D,
applicationSpecificSetting = new()
{
from = new()
{
row = 5,
column = 40
},
to = new()
{
row = 20,
column = 55
}
}
});
row = 0;
worksheet = excel.AddSheet("Combo Chart");
CommonMethod.CreateDataCellPayload().ToList().ForEach(rowData =>
Expand Down Expand Up @@ -750,12 +876,12 @@ public void AddScatterCharts()
{
from = new()
{
row = 5,
row = 6,
column = 5
},
to = new()
{
row = 5,
row = 20,
column = 20
}
}
Expand Down

0 comments on commit d1b0594

Please sign in to comment.