更新20260608
This commit is contained in:
@@ -131,7 +131,7 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Services
|
||||
{
|
||||
var rows = new List<IReadOnlyList<object?>>
|
||||
{
|
||||
new object?[] { "滑动开始后时间(s)", "垂直载荷(N)", "水平摩擦力(N)", "滑动位移(mm)", "摩擦系数" }
|
||||
new object?[] { "时间(s)", "垂直压力(N)", "水平拉力(N)", "距离(mm)", "摩擦系数" }
|
||||
};
|
||||
|
||||
foreach (var point in points)
|
||||
@@ -244,17 +244,10 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Services
|
||||
drawingsPart.WorksheetDrawing = new Xdr.WorksheetDrawing();
|
||||
AddChartPart(
|
||||
drawingsPart,
|
||||
CreateForceAndCoefficientChartSpace(lastRow),
|
||||
CreateScreenshotStyleChartSpace(lastRow),
|
||||
2U,
|
||||
"防滑性能力与摩擦系数曲线",
|
||||
"防滑性能测试曲线",
|
||||
1,
|
||||
23);
|
||||
AddChartPart(
|
||||
drawingsPart,
|
||||
CreateDisplacementChartSpace(lastRow),
|
||||
3U,
|
||||
"滑动位移",
|
||||
25,
|
||||
39);
|
||||
drawingsPart.WorksheetDrawing.Save();
|
||||
worksheetPart.Worksheet.Save();
|
||||
@@ -300,10 +293,10 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Services
|
||||
new Xdr.ClientData()));
|
||||
}
|
||||
|
||||
private static C.ChartSpace CreateForceAndCoefficientChartSpace(int lastRow)
|
||||
private static C.ChartSpace CreateScreenshotStyleChartSpace(int lastRow)
|
||||
{
|
||||
const uint xAxisId = 48650112U;
|
||||
const uint forceAxisId = 48672768U;
|
||||
const uint forceAndDistanceAxisId = 48672768U;
|
||||
const uint coefficientAxisId = 48689152U;
|
||||
|
||||
var forceChart = new C.ScatterChart(
|
||||
@@ -311,21 +304,27 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Services
|
||||
CreateSeries(0, 2, lastRow),
|
||||
CreateSeries(1, 3, lastRow),
|
||||
new C.AxisId { Val = xAxisId },
|
||||
new C.AxisId { Val = forceAxisId });
|
||||
new C.AxisId { Val = forceAndDistanceAxisId });
|
||||
var coefficientChart = new C.ScatterChart(
|
||||
new C.ScatterStyle { Val = C.ScatterStyleValues.LineMarker },
|
||||
CreateSeries(2, 5, lastRow),
|
||||
new C.AxisId { Val = xAxisId },
|
||||
new C.AxisId { Val = coefficientAxisId });
|
||||
var distanceChart = new C.ScatterChart(
|
||||
new C.ScatterStyle { Val = C.ScatterStyleValues.LineMarker },
|
||||
CreateSeries(3, 4, lastRow),
|
||||
new C.AxisId { Val = xAxisId },
|
||||
new C.AxisId { Val = forceAndDistanceAxisId });
|
||||
|
||||
var chart = new C.Chart(
|
||||
CreateTitle("防滑性能滑动阶段曲线"),
|
||||
CreateTitle("防滑性能测试曲线"),
|
||||
new C.PlotArea(
|
||||
new C.Layout(),
|
||||
forceChart,
|
||||
coefficientChart,
|
||||
CreateValueAxis(xAxisId, forceAxisId, C.AxisPositionValues.Bottom, "滑动开始后时间(s)"),
|
||||
CreateValueAxis(forceAxisId, xAxisId, C.AxisPositionValues.Left, "垂直载荷 / 水平摩擦力 (N)"),
|
||||
distanceChart,
|
||||
CreateValueAxis(xAxisId, forceAndDistanceAxisId, C.AxisPositionValues.Bottom, "时间(s)"),
|
||||
CreateValueAxis(forceAndDistanceAxisId, xAxisId, C.AxisPositionValues.Left, "压力(N)/距离(mm)"),
|
||||
CreateValueAxis(coefficientAxisId, xAxisId, C.AxisPositionValues.Right, "摩擦系数")),
|
||||
new C.Legend(
|
||||
new C.LegendPosition { Val = C.LegendPositionValues.Bottom },
|
||||
@@ -337,34 +336,6 @@ namespace Footwear_Test_methodsfor_wholeshoe_Slipresistanceperformance.Services
|
||||
chart);
|
||||
}
|
||||
|
||||
private static C.ChartSpace CreateDisplacementChartSpace(int lastRow)
|
||||
{
|
||||
const uint xAxisId = 48700112U;
|
||||
const uint displacementAxisId = 48722768U;
|
||||
|
||||
var displacementChart = new C.ScatterChart(
|
||||
new C.ScatterStyle { Val = C.ScatterStyleValues.LineMarker },
|
||||
CreateSeries(0, 4, lastRow),
|
||||
new C.AxisId { Val = xAxisId },
|
||||
new C.AxisId { Val = displacementAxisId });
|
||||
|
||||
var chart = new C.Chart(
|
||||
CreateTitle("滑动位移"),
|
||||
new C.PlotArea(
|
||||
new C.Layout(),
|
||||
displacementChart,
|
||||
CreateValueAxis(xAxisId, displacementAxisId, C.AxisPositionValues.Bottom, "滑动开始后时间(s)"),
|
||||
CreateValueAxis(displacementAxisId, xAxisId, C.AxisPositionValues.Left, "滑动位移 (mm)")),
|
||||
new C.Legend(
|
||||
new C.LegendPosition { Val = C.LegendPositionValues.Bottom },
|
||||
new C.Layout()),
|
||||
new C.PlotVisibleOnly { Val = true });
|
||||
|
||||
return new C.ChartSpace(
|
||||
new C.EditingLanguage { Val = "zh-CN" },
|
||||
chart);
|
||||
}
|
||||
|
||||
private static C.ScatterChartSeries CreateSeries(uint index, int yColumnIndex, int lastRow)
|
||||
{
|
||||
var sheet = EscapeSheetName(DataSheetName);
|
||||
|
||||
Reference in New Issue
Block a user