Usage of ultrachart (3): Add comments to data

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.