current location: Home > download site > Library download > Other libraries > PHP library for creating charts
PHP library for creating charts
Classify: Library download / Other libraries | Release time: 2018-01-18 | visits: 2724 |
Download: 168 |
Latest Downloads
Fantasy Aquarium
Girls Frontline
Wings of Stars
Little Flower Fairy Fairy Paradise
Restaurant Cute Story
Shanhe Travel Exploration
Love and Producer
The most powerful brain 3
Odd Dust: Damila
Young Journey to the West 2
24 HoursReading Leaderboard
- 1 How to Extend and Override Django Admin Templates Without Replacing Them?
- 2 How to Combine Two Arrays in JavaScript?
- 3 dynexwcui.exe - What is dynexwcui.exe?
- 4 How to Override Styles in a Shadow-Root Element?
- 5 How to Create a Dynamic Pivot Table in MySQL with Integer User IDs?
- 6 dtvimpex.dll - What is dtvimpex.dll?
- 7 Why does "go module @latest found but does not contain package" Error Occur When Using github.com/mkideal/cli?
- 8 Why Do Lambda Expressions Sometimes Fail to Pass the Correct Parameters When Connecting Slots in PyQt?
- 9 How to Dynamically Create CSS @-keyframes Animations Based on Server Responses?
- 10 How to Select a Label with a Specific 'for' Attribute in CSS?
- 11 Why Can't I Assign to a Struct Field in a Map?
- 12 How to Retrieve the Value of a Submitted Button in a Form with Multiple Buttons?
- 13 When Should You Use Getters/Setters Instead of Public Data Members?
- 14 Who is Running My PHP Script?
- 15 Why Am I Getting "SMTP Error: Could Not Authenticate" When Sending Emails with PHPMailer?
Latest Tutorials
-
- Go language practical GraphQL
- 2011 2024-04-19
-
- 550W fan master learns JavaScript from scratch step by step
- 3429 2024-04-18
-
- Getting Started with MySQL (Teacher mosh)
- 1811 2024-04-07
-
- Mock.js | Axios.js | Json | Ajax--Ten days of quality class
- 2625 2024-03-29
<?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 Chart Test")); //Set the chart title here iconv_arr is added by myself. In order to support our great Chinese, you need to set your current encoding Convert to html entity
$graph->xaxis->title->Set(iconv_arr("This is probably the month")); //Set the X-axis title
$ graph->yaxis->title->Set(iconv_arr("This is the Y-axis")); //Set the Y-axis title
$graph->title->SetFont(FF_SIMSUN, FS_BOLD); //Set the title font. The default font here is FF_FONT1. For Chinese, change it to FF_SIMSUN
$graph->yaxis->title->SetFont(FF_SIMSUN,FS_BOLD); //Set X Axis title font
$graph->xaxis->title->SetFont(FF_SIMSUN,FS_BOLD); //Set Y-axis title font