jpgraph

JPgraph font error

僤鯓⒐⒋嵵緔 提交于 2021-01-28 15:01:54
问题 I am using 000webhost.com and trying to draw a graph, but I get this error, JpGraph Error: 25049 Font file "../src/font/verdanab.ttf" is not readable or does not exist. I downloaded all the fonts and uploaded on my host, but I still get this error, probably my root is wrong. I really need help. 回答1: In case you still need help or someone else finds this useful... Your host probably has some ttf fonts already, so you should start by finding their path. In my case it was something like /usr

PHP之数据展示之JpGraph类库

橙三吉。 提交于 2020-08-06 19:45:25
目录 1.前言 2.JpGraph类库基本使用 2.1安装和配置 2.2JpGraph类库的实例 2.2.1折线坐标图(X-Y坐标图) 2.2.2解决中文乱码问题 3. 图文代码实战 3.1折线坐标图(X-Y-Y坐标图) 3.2柱形图 3.3饼图 3.4饼图3D 4.总结 1.前言 jpgraph是一种专门用于绘制统计图的运行库,使用jpgraph创建统计图时,只需要给出相应的数据,就能设置统计图标题和统计图类型即可;可以生成X-Y坐标图,X-Y-Y坐标图,柱形图,饼图,3D饼图等统计图,并会自动生成坐标轴,坐标轴刻度,图例等信息,帮助我们快速生成所需样式. 代码分享: https://github.com/mtdgclub/JpGraph 2.JpGraph类库基本使用 2.1安装和配置 下载地址: https://jpgraph.net/download/ 只需要解压文件拷贝src文件到项目文件夹即可使用 2.2JpGraph类库的实例 2.2.1折线坐标图(X-Y坐标图) <?php //引入相关文件 require_once 'src/jpgraph.php'; require_once 'src/jpgraph_line.php'; $graph = new Graph(600, 400);//创建画布 //设置横纵坐标刻度样式 lin 直线 text 文本 int 整数

Mantis1.2.19 在Windows 平台上的安装配置详解

别等时光非礼了梦想. 提交于 2020-08-05 12:22:10
安装环境:    WindowsXP 32    Apache2.2.22+PHP5.4.39+MySQL5.5.28 一、简介   MantisBT是由 PHP开发 的、基于 WEB的缺陷跟踪系统 ,并采用 开源数据库MySQL ,构成一个完整的 开源 解决方案,如下图1所示。MantisBT的主要功能可以分为3个部分:管理、缺陷报告和统计分析。每个部分又有一些子功能,子功能下面还有一些具体的功能,其功能结构,可以用图2来描述。 图1 图2 MantisBT的功能特点: (1)支持多项目、多语言。 (1)权限设置灵活,不同角色有不同权限,还支持自定义角色。 (1) 可以建立缺陷之间的关联或依赖关系,从而更有效地管理项目。 (1)缺陷统计分析功能比较强,有多种直方图和圆饼图,并能导出CSV文件供Excel作进一步分析。 (1) 有自定义字段功能,可以满足企业的一些特殊要求。 (1) 缺陷可以在不同项目间移动。 (1) 主页可发布公告、项目相关新闻,方便信息传播。 (1) 个人可定制Email通知功能,每个用户可根据自身的工作特点订阅相关的缺陷状态邮件。 (1) 可以定制软件公司特定的缺陷处理流程。 与Bugzilla相比,Mantis有如下优点:   第一、Mantis相对Bugzilla有更好的操作界面。   第二、安装和使用都相对简单一点。对于一般的项目,

PHP使用JpGraph绘制折线图

人盡茶涼 提交于 2020-01-24 15:28:47
PHP使用JpGraph绘制折线图 下载jpgraph类库,使用的是src目录下的类文件。 require_once './src/jpgraph.php'; require_once './src/jpgraph_line.php'; //创建统计图对象,宽,高 $graph = new Graph(1993, 766); //设置背景,注意要把主题给换掉 $graph->SetBackgroundImage('./bg.jpg',2); //设置背景图片使用百分比1-100 $graph->SetBackgroundImageMix(100); //设置边距,空余四角边距(左右上下) $graph->img->SetMargin(0,0,0,0); //设置x和y的刻度类型,设置比例 (X 文本比例、Y 线比例) //lin直线、text文本、int整数、log对数 $graph->SetScale('linlin',50,100);//Y轴的最小值、最大值 //设置统计图标题 $graph->title->Set(iconv('utf-8', 'GB2312//IGNORE', '折线图')); //隐藏x轴上的刻度线 $graph->xaxis->HideTicks(true,true); //隐藏x轴线 $graph->xaxis->HideLine(true); /

jpgraph doesn't work

ぐ巨炮叔叔 提交于 2020-01-03 04:39:49
问题 I am developing a web application about statistics, so I am using the library jpgraph What is going wrong is that the graph does not appear. Displays only the browser's broken image icon. $num = 20; $num2 = 10; $data = array($num,$num2); $graph = new PieGraph(300,200); $graph->SetShadow(); $graph->title->Set("Utilizadores Registados"); $p1 = new PiePlot($data); $graph->Add($p1); $graph->Stroke(); I am sure that GD is enable. Thank you! 回答1: My guess is that your output contains PHP error

alternative to jpGraph

我是研究僧i 提交于 2019-12-30 03:26:10
问题 This is my first time generating graphs using php. Do you know of any alternatives to jpGraph? 回答1: Listed in no particular order, here's a few charting libraries for PHP ChartDirector GraPHPite LibChart pChart TeeChart 回答2: you have fusion charts , very famous and easy to work http://www.fusioncharts.com/ with the free edition http://www.fusioncharts.com/free/ 来源: https://stackoverflow.com/questions/4323987/alternative-to-jpgraph

PHP jpgraph parse x and y axis through a url?

半城伤御伤魂 提交于 2019-12-25 02:07:48
问题 I have a jpgraph script that parses a URL to build a graph for me like this: How do I send the X-Axis data at the same time, as I need to skip months and the current method does not allow for this? I'm guessing it would look something like this: /chart/jpgraph/graphmaker.php?a=(Jan','5)&b=(Feb','3)&c=(Jun','4) The jpgraph graph code in "graphmaker.php" is: <?php $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $parsedurl = parse_url($url, PHP_URL_QUERY); parse_str($parsedurl);

Missing chars in JpGraph

安稳与你 提交于 2019-12-24 07:42:14
问题 I have a web site that runs on Windows and uses cp1252 (aka Win-1252 ) so it can display Spanish characters. The app generates some plots with JpGraph 2.3 . These plots use the Tahoma Open Type font family to display text labels. Strings are provided in ANSI (i.e., cp1252) and font files support cp1252 (actually, the *.ttf files were copied from the system's font folder). It's been working fine in several setups from PHP/5.2.6 to PHP/5.3.0. Problems started when I ran the app under PHP/5.3.1

JpGraph: How to control x/y offset, margins and color in v3.5.0b1 when using AccBarPlot?

自闭症网瘾萝莉.ら 提交于 2019-12-22 11:35:57
问题 A little background I am attempting to migrate a project built with Symfony 1.2 from one server to another. One of the functions of the project is to build a graph (originally done with JpGraph 2.3.5). The graph does not display as intended without modifications to the code and am looking for some insight on what I might be overlooking. Images are linked due to not having enough points to post. Graph Image Gallery The following graph is what is generated by the code block below <?php public

JpGraph margin issue

与世无争的帅哥 提交于 2019-12-12 05:20:01
问题 i just generated a graph using jpGraph library.someone please help me to fix the left margin of the image generated by the jpgraph library. as you can see , the Yscale numbers are 6 digit , and it showing only 5 because of the margin issue. Please refer the below code and the image. Thanks // Setup the graph $graph = new Graph(800,400,'auto'); $graph->SetFrame(false); $graph->SetScale('textint'); $theme_class=new UniversalTheme; $graph->SetTheme = null; $graph->title->Set('Filled Y-grid');