国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home PHP Libraries Other libraries PHP library for creating charts
PHP library for creating charts
<?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


Disclaimer

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

15 JavaScript Libraries for Creating Beautiful Charts 15 JavaScript Libraries for Creating Beautiful Charts

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

Creating Beautiful Charts Using Vue.js Wrappers for Chart.js Creating Beautiful Charts Using Vue.js Wrappers for Chart.js

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

Which PHP ORM Library is Best for Abstracting Database Vendors and Mapping Domain/Relational Models? Which PHP ORM Library is Best for Abstracting Database Vendors and Mapping Domain/Relational Models?

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...

PhpMailer vs. SwiftMailer: Which PHP Library Is the Best for Your Email Needs? PhpMailer vs. SwiftMailer: Which PHP Library Is the Best for Your Email Needs?

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

C   tutorial for creating a DLL or static library C tutorial for creating a DLL or static library

28 Jun 2025

To create a DLL or static library, you need to select a template first and then export the function. Steps: 1. Select the StaticLibrary(.lib) template for static library to create a project, add .cpp/.h files, and compile and generate .lib; 2. Select Dynamic-LinkLibrary(DLL) for DLL, use __declspec(dllexport) to export the function or .def file definition, and generate .dll and .lib; 3. When using it, copy .lib and header files to the new project, and the configuration includes path and link dependencies. DLL also needs to place .dll in the same directory or system path as the executable file.

Which Python Library is Best for Creating Simple XML Files? Which Python Library is Best for Creating Simple XML Files?

27 Oct 2024

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

See all articles