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

レーダーのスポークラベル

スポークにラベルを割り当てて、レーダープロットの円周上の値にラベルを付けることができます

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

double[,] values = {
    { 78,  83, 84, 76, 43 },
    { 100, 50, 70, 60, 90 }
};

var radar = myPlot.Add.Radar(values);
radar.Series[0].LegendText = "A";
radar.Series[1].LegendText = "B";

string[] spokeLabels = { "勝利数", "ポール数", "表彰台数", "ポイント", "リタイア数" };
radar.PolarAxis.SetSpokes(spokeLabels, length: 110);

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