Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

積み上げ水平レンジチャート

水平方向の積み上げレンジチャートを作成できます

Bar.cs
ScottPlot.Plot myPlot = new();

List<(string name, double[] edges)> ranges =
[
    ("Ontario", [-9, 3, 7, 13, 27]),
    ("England", [4, 7, 12, 16, 24]),
    ("Kentucky", [-4, 7, 13, 20, 30]),
];

myPlot.Add.StackedRanges(ranges, horizontal: true);

myPlot.SavePng("demo.png", 400, 300);
このレシピは、棒プロットカテゴリにある多数のレシピの1つです