Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
どのシリーズが何であるかを示すためにグラフにラベルを追加する方法。
私のクライアントは凡例を望んでおらず、チャート領域のラベルを望んでいます。おそらくC#で?
ラベルを設定する最も簡単な方法は、データをグラフにバインドするときです。
例えば。円グラフの場合(他のタイプでは異なる場合があります):
chart.Series["seriesName"].Points.DataBind(MyDataList, "xFieldPropertyName", "yFieldPropertyName", "Label=xFieldPropertyName{p2},LegendText=legendPropertyName");