Devexpress-xtracharts dynamic loading (curve)

Source: Internet
Author: User
The chart needs to be loaded during initialization.Code(Put this. suspendlayout (); behind the function in form. Designer. CS) # Region Code should be loaded for chart initialization (put this. suspendlayout () in Form. Designer. CS; after the function)
Devexpress. xtracharts. Series Series1 =   New Devexpress. xtracharts. Series ();
Devexpress. xtracharts. Series series2 =   New Devexpress. xtracharts. Series ();
Devexpress. xtracharts. pointserieslabel pointserieslabel1 =   New Devexpress. xtracharts. pointserieslabel ();
Devexpress. xtracharts. lineseriesview lineview =   New Devexpress. xtracharts. lineseriesview ();
Devexpress. xtracharts. xydi1_xydiagram1 =   New Devexpress. xtracharts. xydi.pdf ();
// Series1.argumentscaletype = devexpress. xtracharts. scaletype. Numerical; // Set display type
Series1.argumentdatamember =   " Fperiod " ; // Data Division basis
Series1.view = Lineview; // Display as a line or other such as a pie chart or column chart
Series1.valuedatamembersserializable =   " Fdata " ; // Show data
Chartpoint. Series. addrange ( New Devexpress. xtracharts. Series [] {Series1} ); // Series [] {Series1, series2}
// Series1.name = "score ";
Chartpoint. Series [ 0 ]. View = Lineview;
Chartpoint. digoal = Xydiagram1;
Xydiagram1.axisy. Title. Visible =   True ;
Xydiagram1.axisy. Title. Text =   " Score " ; // Vertical Column name
Xydiagram1.axisy. gridlines. Visible =   True ; // Show each vertical line
Xydiagram1.axisx. gridlines. Visible =   True ;
Xydiagram1.axisx. Title. Visible =   True ;
Xydiagram1.axisx. Title. Text =   " Month " ; // Horizontal Column name
Chartpoint. appearancename =   " Northern Lights " ; // Display style
// Xydiagram1.rotated = false; // Vertical and horizontal conversion?
# Endregion

Form event Execution Code # Region Form event Execution Code
Clssuppval SV =   New Clssuppval ();
Chartpoint. Series [ 0 ]. Datasource = Sv. getsuppchart (str1, str2). Tables [ 0 ]. Defaultview;
Chartpoint. Series [ 0 ]. Name = Textbox. text;
# Endregion

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.