<?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
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article

09 Feb 2025
Data Visualization with JavaScript: A Comprehensive Guide to Charting Libraries Interactive charts and graphs are essential for any modern dashboard, effectively presenting complex data. This article explores leading JavaScript libraries for creati

16 Feb 2025
Create beautiful charts with Vue.js and Chart.js Charts are an important part of modern websites and applications that help present information that is difficult to express in text and make otherwise difficult to understand data present in an easy to read and understand manner. This article will demonstrate how to create various types of charts using Chart.js and Vue.js. Chart.js is a simple and flexible JavaScript chart library that allows developers and designers to draw different types of charts using HTML5 canvas elements. Vue.js is a progressive JavaScript framework that we will use with Chart.js to demonstrate graph representation examples. We will use Vue CLI to

05 Jan 2025
PHP ORM Library RecommendationsWhen it comes to object-relational mapping (ORM) for PHP, there are several libraries that stand out. To address...

18 Oct 2024
PhpMailer vs. SwiftMailer: Comparing Email LibrariesWhen crafting a PHP script that requires email functionality, developers often face a choice between PhpMailer and SwiftMailer libraries. Navigating this decision can be crucial in finding the best

27 Oct 2024
Creating Simple XML Files in Python: Library Options and ImplementationFor those seeking to create XML files in Python, multiple library options...

29 Oct 2024
Creating a Simple XML File Using Python: Library OptionsIf you need to generate an XML file in Python, several library options are available,...


Hot Tools

PHP library for dependency injection containers
PHP library for dependency injection containers

A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking

Small PHP library for optimizing images
Small PHP library for optimizing images
