Question Changing the properties of chart's label

vFedora

New member
Joined
Mar 24, 2023
Messages
1
Programming Experience
1-3
Hi. I will ask something short because I tried to do it myself but couldn't find it. When I add data to the chart object, I print the names of the data on the right side label.My question is, "How can I change the background color of this label?" And that's my code: "
chart1.Series.Clear();
chart1.Series.Add($"{donusumMiktari} {neyden} / {neye}");
double bidPriceVal = Convert.ToDouble(bidPrice) * donusumMiktari;
chart1.Series[$"{donusumMiktari} {neyden} / {neye}"]. Points.AddXY("Teklif Fiyat", bidPriceVal);
double askPriceVal = Convert.ToDouble(askPrice) * donusumMiktari;
chart1.Series[$"{donusumMiktari} {neyden} / {neye}"]. Points.AddXY("Alış Fiyatı", askPriceVal);"
c# chart.png
 
Solution
Back
Top Bottom