<?php include("pChart/pData.class"); include("pChart/pChart.class"); $DataSet = new pData; $DataSet->AddPoint(array(1,4,-3,2,-3,3,2,1,0,7,4,-3,2,-3,3,5,1,0,7),"Serie1"); $DataSet->AddPoint(array(0,3,-4,1,-2,2,1,0,-1,6,3,-4,1,-4,2,4,0,-1,6),"Serie2"); $DataSet->AddAllSeries(); $DataSet->SetAbsciseLabelSerie(); $DataSet->SetSerieName("January","Serie1"); $DataSet->SetSerieName("February","Serie2"); $Test = new pChart(700,230); $Test->setFontProperties("Fonts/tahoma.ttf",8); $Test->setGraphArea(50,30,585,200); $Test->drawFilledRoundedRectangle(7,7,693,223,5,240,240,240); $Test->drawRoundedRectangle(5,5,695,225,5,230,230,230); $Test->drawGraphArea(255,255,255,TRUE); $Test->draw
$graph->title->Set(iconv_arr("Phpwind 圖表測試")); // 設定圖表標題這裡iconv_arr是我自己加的,為了支持我們偉大的中文要把你的當前編碼轉換為html實體
$graph->xaxis->title->Set(iconv_arr("這個大概是月份吧")); //設定X軸標題
#$ graph->yaxis->title->Set(iconv_arr("這個是Y軸")); //設定Y軸標題
$graph->title->SetFont(FF_SIMSUN, FS_BOLD); //設定標題字體,這裡字體預設是FF_FONT1,為了中文換成FF_SIMSUN
$graph->yaxis->title->SetFont(FF_SIMSUN,FS_BOLD); //設定X軸標題字體
$graph->xaxis->title->SetFont(FF_SIMSUN,FS_BOLD); //設定Y軸標題字體
本站所有資源皆由網友貢獻或各大下載網站轉載。請自行檢查軟體的完整性!本站所有資源僅供學習參考。請不要將它們用於商業目的。否則,一切後果都由您負責!如有侵權,請聯絡我們刪除。聯絡方式:admin@php.cn
相關文章

22 Dec 2024
在 Hibernate 中使用實體類別自動建立和更新資料庫表您的 Java Persistence API (JPA) 實體類別、ServerNode 和...

06 Dec 2024
使用 Hibernate 實體類別自動建立或更新資料庫表格問題:如何設定 Hibernate 自動建立或更新資料庫表

06 Dec 2024
Hibernate:從實體類別自動建立/更新資料庫表格問:如何設定 Hibernate 以自動建立或更新...

19 Nov 2024
如何使用 Pandas DataFrame 按類別建立散佈圖問題:如何使用 Pandas DataFrame 高效建立散佈圖,...


Hot Tools
