Angri450.Nong.Chart
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Angri450.Nong.Chart --version 1.0.0
NuGet\Install-Package Angri450.Nong.Chart -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Angri450.Nong.Chart" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Angri450.Nong.Chart" Version="1.0.0" />
<PackageReference Include="Angri450.Nong.Chart" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Angri450.Nong.Chart --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Angri450.Nong.Chart, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Angri450.Nong.Chart@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Angri450.Nong.Chart&version=1.0.0
#tool nuget:?package=Angri450.Nong.Chart&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Angri450.Nong.Chart
农学统计图表库——ScottPlot 封装。ANOVA + Duncan 多重比较,柱形图 + 误差线 + 显著性标注,图表拼接。农学生实验数据处理的三件套。
Install
dotnet add package Angri450.Nong.Chart
Quick Start
统计分析
using ChartCore;
// 从 JSON 读分组数据:{"T1":[1.2,1.5,1.8], "T2":[2.1,2.3,2.5]}
var groups = DataLoader.FromJson("data.json");
// ANOVA + Duncan 多重比较
var result = StatsEngine.FullAnalysis(groups);
result.Print();
// 或分步调用
var anova = StatsEngine.OneWayAnova(groups);
var duncan = StatsEngine.DuncanMRT(groups, anova.MSW, anova.dfW);
图表生成
// 简单柱形图
ChartBuilder.BarChart(groups, "不同处理对株高的影响", "株高 / cm", "chart.png");
// 带显著性标注
var sigLabels = duncan.Groups.ToDictionary(g => g.Label, g => g.Significance);
ChartBuilder.BarChartWithSignificance(groups, sigLabels, "...", "...", "chart.png");
从 xlsx 读数据
var groups = DataLoader.FromXlsxMultiColumn("data.xlsx", "Sheet1",
groupCol: 1, valueCols: new[] { 2, 3, 4 });
多图拼接
ChartCombine.MergeHorizontal(
new[] { "fig1.png", "fig2.png", "fig3.png" },
new[] { "A", "B", "C" },
"fig_combined.png");
Dependencies
| 包 | 用途 |
|---|---|
| ScottPlot 5.x | 图表渲染 |
| ClosedXML | xlsx 数据读取 |
| System.Drawing.Common | 图表拼接(仅 Windows) |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net11.0
- ClosedXML (>= 0.105.0)
- ScottPlot (>= 5.1.58)
- System.Drawing.Common (>= 10.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.