When the image is column, I personally think that the annotation of the image is not important, because there is already below, but when the image is line, especially when multiple pieces of data are together, it is essential to annotate the image. Ultrachart provides some attributes that can help add necessary annotations to images. Take the previous example as an example.
Private void chart ()
{
String strconn = "Server = (local);" + "Integrated Security = sspi;" + "database = test ;";
DS = sqlhelper. executedataset (strconn, commandtype. Text, "Select name, Count, e, f, g from Table1 where id = 1 ");
Datatable table = Ds. Tables [0];
Table. Columns ["count"]. columnname = "1 ";
Table. Columns ["E"]. columnname = "2 ";
Table. Columns ["F"]. columnname = "3 ";
Table. Columns ["G"]. columnname = "4 ";
This. ultrachart1.titlebottom. Text = "performance trend chart ";
This. ultrachart1.legend. spanpercentage = 15;
This. ultrachart1.legend. Visible = true;
This. ultrachart1.data. datasource = table;
This. ultrachart1.data. databind ();
This. ultrachart1.charttype = infragistics. ultrachart. Shared. Styles. charttype. columnchart;
This. ultrachart1.titletop. Text = "text ";
}
Effect:
When line is used
How is it?