JPGRAPH output Chinese problem

xiaoxiao2021-03-05  22

1.7 is simple after the version, as long as FF_SIMSUN is used as the specified font output

$ ydata = array (11, 3, 8, 12, 5, 1, 9, 13, 5, 7);

// Create the Graph. These TWO Calls Are ALWAYS Required $ graph = new graph (350, 200, "auto"); $ graph-> setscale ("textlin");

// adjust the margin $ graph-> img-> setmargin (40, 30, 20, 40); $ graph-> setshadow ();

// Create the linear plot $ lineplot = new lineplot ($ ydata); $ lineplot-> mark-> settype (mark_utriangle); $ lineplot-> value-> show (); $ lineplot-> value-> setcolor ('DarkRed '); $ lineplot-> value-> setfont (ff_font1, fs_bold); $ lineplot-> value-> setformat ('% 0.1f / m2 ');

// add the plot to the graph $ graph-> add ($ lineplot);

$ Str = functions :: GB2UNICODE ('good picture');

$ graph-> title-> set ("Good DISPLAYING THE VALUES"); $ graph-> xaxis-> title-> set ("x-title"); $ graph-> yaxis-> title-> set (" Y-Title ");

$ graph-> title-> setfont (ff_simsun, fs_bold); $ graph-> yaxis-> title-> setfont (ff_simsun, fs_bold); $ graph-> xaxis-> title-> setfont (ff_simsun, fs_bold);

$ linePlot-> SetColor ("blue"); $ lineplot-> setWeight (2);

// Display the graph $ graph-> stroke ();?>

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

New Post(0)