Componentart charting simple data reading and Data Binding

Source: Internet
Author: User
1. modify web. config <! -- System. Web Is Here -->
< Httphandlers >
< Add verb = " Get "  
Path = " Cachedimageservice. axd "  
Type = " Componentart. charting. cachedimageservice, componentart. charting. webchart " />
</ Httphandlers >

2. Read and bind data Double [] Y =   New   Double []
  {25.1,35.1,60.1,98.1,76.1,70.9} ;
String [] X =   New   String []
  { " Jan 04 " , " Feb 04 " , " Mar 04 " , " APR 04 " , " May 04 " , " Jun 04 " } ;
Chart1.definevalue ( " X " , X );
Chart1.definevalue ( " Y " , Y );
Chart1.databind ();

Double [] Sales =   New   Double [ 8 ] {64.35,66.84,63.79,52.36,52.88,77.87,84.2,104} ;
Color [] color =   New Color [ 8 ] {Color. Red, color. White, color. Red, color. White} ;
Chart1.definevalue ( " S0: Y " , Sales );
Chart1.definevalue ( " S0: Color " , Color );

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.