TEECHART control foundation

xiaoxiao2021-03-06  38

Add a Chart1 on the form, add chart1-> addseries (new tpieseries (chart1)) in the formcreate event; // Add a pie chart Chart1-> Series [0] -> Clear (); chart1-> view3d = true ; // Whether it is displayed in 3D

Chart1-> Topaxis-> title-> caption = "x test test"; chart1-> bottomaxis-> title-> caption = "y testtes"; chart1-> title-> text-> strings [0] = "hi" ;

For (int i = 1; i <= 12; i ) {chart1-> series [0] -> addxy (i, i);} Switch between various graphics First Delete Chart1-> Series [0] delete the original The graphic object, regenerate, such as: delete chart1-> Series [0]; chart1-> addseries (new tbarseries (chart1)); chart1-> view3d = true;

Chart1-> Topaxis-> title-> caption = "x test test"; chart1-> bottomax-> title-> caption = "y tests";

For (int i = 1; i <= 12; i ) {chart1-> series [0] -> addxy (i, i);}

转载请注明原文地址:https://www.9cbs.com/read-78198.html

New Post(0)