Skip to content

Instantly share code, notes, and snippets.

@evilnapsis
Created March 14, 2017 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilnapsis/c8af1f8b22bea0f9727e8c1da6ac8862 to your computer and use it in GitHub Desktop.
Save evilnapsis/c8af1f8b22bea0f9727e8c1da6ac8862 to your computer and use it in GitHub Desktop.
Ejemplo de grafica en c#
chart1.Series["Series1"].LegendText = "Visitas 2017";
Dictionary<string, int> dic = new Dictionary<string, int>();
dic.Add("19-FEB-2017", 576);
dic.Add("20-FEB-2017", 1087);
dic.Add("21-FEB-2017", 1061);
dic.Add("22-FEB-2017", 660);
dic.Add("23-FEB-2017", 774);
foreach(KeyValuePair<string, int> d in dic) {
chart1.Series["Series1"].Points.AddXY(d.Key, d.Value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment