The default effect is
It is expected to be filled in the X direction without leaving the two sides. The method is to use zg1.graphpane. xaxis. Scale. Max and min, and it must be set after the image is drawn.
Zg1.graphpane. curvelist. Clear ();
Zg1.graphpane. xaxis. type = axistype. date;
Zg1.graphpane. xaxis. Scale. format = "M'/'d ";
String sdate1 = datetime. Now. addmonths (-3). tostring ("yyyy-mm-dd ");
String sdate2 = datetime. Now. tostring ("yyyy-mm-dd ");
Double X1 = (double) New xdate (convert. toint32 (sdate1.substring (0, 4), convert. toint32 (sdate1.substring (5, 2), convert. toint32 (sdate1.substring (8, 2 )));
Double X2 = (double) New xdate (convert. toint32 (sdate2.substring (0, 4), convert. toint32 (sdate2.substring (5, 2), convert. toint32 (sdate2.substring (8, 2 )));
Pub. createline (ZG1, sdate1, listview1.selecteditems [0]. subitems [1]. Text );
Pub. creategraph (ZG1, sdate1, sdate2, listview1.selecteditems [0]. subitems [1]. Text); // the last stroke of the pattern to be filled
Zg1.graphpane. xaxis. Scale. max = x2;
Zg1.graphpane. xaxis. Scale. min = x1;
Zg1.refresh ();