473,404 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

generating pie charts in php using the libcart package

for the following code it gives anerror as "Fatal error: Class 'PieChart' not found in C:\xampp\htdocs\n1.php on line 5" even incuding the classes itshows anerror as" Warning: include(C:\xampp\htdocs\libchart\classes): failed to open stream: Permission denied in C:\xampp\htdocs\n1.php on line 3

Warning: include(): Failed opening 'libchart/classes' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\n1.php on line 3

Fatal error: Class 'PieChart' not found in C:\xampp\htdocs\n1.php on line 4",pls give the solution to fix errors.
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. include "libchart/libchart.php";
  3.  
  4.     $chart = new PieChart(500, 250);
  5.  
  6.     $dataSet = new XYDataSet();
  7.     $dataSet->addPoint(new Point("Mozilla Firefox (80)", 80));
  8.     $dataSet->addPoint(new Point("Konqueror (75)", 75));
  9.     $dataSet->addPoint(new Point("Other (50)", 50));
  10.     $chart->setDataSet($dataSet);
  11.  
  12.     $chart->setTitle("User agents for www.example.com");
  13.     $chart->render("generated/demo3.png");
  14. ?>
Mar 1 '15 #1
0 1025

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: emiliano | last post by:
Hey guys, i was just googling some information about how to use the ClientForm package with a page which requires HTTP basic authentication and i got here :P ... So here is the problem, lets see if...
1
by: kunju | last post by:
Hi, I want to import data to a parent and child table from two different csv files. Csv file for the parent table have got the primary key(integer) field and child have the forien key . My problem...
0
by: shark | last post by:
Hi All, i am getting the error as posted below while executing Transfer logins using Dts package - sql server 2000 standard edition Can any body help? Microsoft Windows (C) Copyright...
0
by: bikram3005181 | last post by:
How to generate series of charts dynamically ? I have report parameter called location which has 10 locations. on each selection of a location, one chart is shown. How to generate 10 charts for each...
4
by: Fred | last post by:
Is it possible to generate a chart using the excel 2007 engine for a web page? (output in jpg)... If not what 3rd party solution would you recommend for this purpose Thanks, Fred
1
by: lavadan | last post by:
Hi Folks, I am a newbie to VB Script. I need to generate the following XML document using VB Script. Can you please advise me on this? I can manage at least if I know the concept of generating XML...
2
by: bindu123 | last post by:
Hi All, I have to generate a line chart in C on windows, using distance in the X-axis and throughput in Y-axis. Is it possible to generate charts using C programming in windows ? and i also i...
1
by: ape | last post by:
if i have the following data , x axis 10,9,8,7,6 and y axis 5,4,3,2,1. how can i use visual basic to draw a bar chart for x axis just at an indicated time living the y axis, and drawing bar chart for...
2
by: kalpanareddy16 | last post by:
1 declare 2x1 number; 3 begin 4x1 :=5; 5 declare 6x2 number ; 7 begin 8x2 :=6; 9 x1:=x2 ; 10 end; 11 x2 := X1 ; 12 * end; 13 / x2 :=X1; *error at line 11:ORA-06550 :line 11,column...
0
by: Mahmoud ALsaadi | last post by:
I want to upload a text.txt file through oracle store procedure using utl_file package. Sample Open OS file utl_file.fopen(filename) Close OS file utl_file.fclose the text.txt content:
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.