Angri450.Nong.Tool.Chart
13.1.0
dotnet tool install --global Angri450.Nong.Tool.Chart --version 13.1.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Angri450.Nong.Tool.Chart --version 13.1.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Angri450.Nong.Tool.Chart&version=13.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Angri450.Nong.Tool.Chart --version 13.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Angri450.Nong.Chart
学术图表 + 统计分析一站式工具包。angri450 实现了 ANOVA 方差分析和 Duncan 多重比较(MRC 标准农业统计方法),18 种图表类型直接出图,为农学论文量身打造。
Supported Platforms
.NET 8.0 and above (net8.0, net9.0, net10.0, net11.0). Windows, macOS, Linux.
Install
dotnet add package Angri450.Nong.Chart
Quick Start
using ChartCore;
var data = new Dictionary<string, List<double>>
{
["Treatment A"] = new() { 95, 88, 92, 78, 85 },
["Treatment B"] = new() { 72, 68, 75, 70, 73 },
["Treatment C"] = new() { 55, 58, 52, 60, 57 },
};
// 基础柱状图
ChartBuilder.BarChart(data, "Treatment Effects", "Height (cm)", "chart.png");
// 带 ANOVA + Duncan MRT 显著性标注
var analysis = StatsEngine.FullAnalysis(data);
analysis.Print();
ChartBuilder.BarChartWithSignificance(data, analysis.Duncan.Labels,
"Effects", "cm", "chart-sig.png");
Chart Types
angri450 实现了 18 种图表类型:柱状图、饼图、环图、折线图、面积图、散点图、箱线图、直方图、雷达图、K 线图、气泡图、热力图、仪表盘、南丁格尔玫瑰图、棒棒糖图、人口金字塔、函数图、误差棒图。
Statistical Analysis
angri450 按照农业科学惯例实现了完整的统计管线:
ANOVA
var result = StatsEngine.OneWayAnova(data);
Console.WriteLine($"F = {result.FValue:F2}, p = {result.PValue:F4}");
Duncan MRT
var duncan = StatsEngine.DuncanMrt(data);
foreach (var g in duncan.Groups)
Console.WriteLine($"Group {g.Label}: {string.Join(", ", g.Treatments)}");
完整分析管线
var full = StatsEngine.FullAnalysis(data);
// 描述性统计 → 正态性检验 → ANOVA → Duncan MRT → 显著性标注
full.Print(); // 控制台输出
full.ToTable(); // Markdown 表格
Dependencies
Angri450.Nong.ThirdParty— 合并基础库(ScottPlot + SkiaSharp + 全部传递依赖)
API Reference
| Class | Description |
|---|---|
ChartBuilder |
18 种图表静态方法,输出到文件或流 |
StatsEngine |
ANOVA、Duncan MRT、描述性统计、完整分析管线 |
DataLoader |
从 CSV、JSON、Dictionary 导入数据 |
Author
Built by angri450. Source: Nong.Cli.Net.
License
Apache-2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.