How to add data table with legend keys to a MS Chart in C#?
<p>There are 2 lists called <strong>listversion</strong> &amp; <strong>MIN_list</strong>. Using values of these list I have created a line chart. Everything is work fine. But I am wondering whether it is possible to add a data table with legend keys in to the chart like MS Excel. </p>

<pre><code>chart.Series.Clear();
chart.ChartAreas[0].AxisX.Title = "Version";
chart.ChartAreas[0].AxisX.TitleFont = new System.Drawing.Font("Arial", 12, FontStyle.Regular);

chart.ChartAreas[0].AxisY.Title = "Time";
chart.ChartAreas[0].AxisY.TitleFont = new System.Drawing.Font("Arial", 12, FontStyle.Regular);

Series MIN = chart.Series.Add("Minimum");
MIN.Points.DataBindXY(listVersion, MIN_list[j]);
MIN.ChartType = SeriesChartType.Line;
MIN.Color = Color.Red;
MIN.BorderWidth = 3;
</code></pre>

<p>I am looking forward to something like this </p>

<p><a href="https://i.stack.imgur.com/4X6xi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4X6xi.png" alt="enter image description here"></a></p>

<p>If it is possible How can I do it ?</p>

<p>Thank you.</p>