View unanswered posts | View active topics It is currently Thu Mar 28, 2024 6:06 pm



Reply to topic  [ 2 posts ] 
When draw line how to include data from other file or page? 
Author Message
New pChart user
New pChart user

Joined: Wed Oct 02, 2013 9:07 am
Posts: 3
Post When draw line how to include data from other file or page?
Hi all:

When I want to draw line, I want the data can be reference from other place,

e.g. a txt file or a html file or some other place.

In the examples, something like :

$MyData->addPoints(array(2,7,5,18,19,22),"Name");

I want to change it to something like :

date_01 = include(file_name_01.txt)
date_02 = include(file_name_02.txt)
date_03 = include(file_name_03.txt)
$MyData->addPoints(array(date_01,date_02,date_03),"Name");

The file_name_01.txt only have numbers, if one number like 2.3 or some numbers like 3.5,50,22
The file_name_02.txt also like file_name_01.txt

Then the $MyData will auto inlude the data in the file_name_01 and file_name_02 and so on.

So I not need to modify the php file every time.

The reasion why I want this function is I use Dokuwiki, and want the date can auto reference from other wiki page,

I have install the "include" plugin, it can use somethiong like the {{page>:some_page_link}} to include the data from other page.

I want the pCharthart can work like that. I think if add an new symbol, can do some assignment or include work will be great!

I just beginning to use the pChart.

First I want to install the pChart in Dokuwiki, but the pchart download link at Dokuwiki I can't access or not invalid?

https://www.dokuwiki.org/plugin:pchart and http://pchart.sourceforge.net/

I can't download the pChart plugin.

Second I want the function I have said can achieve.

If someone can help me get the plugin of the Dokuwiki(Weatherwax) it will very thanks.

And if the pChart already have this function please let me know it:)

I will keep to update this topic, and now I will study the code of pChart. Maybe need a long-term.

And last, I am the first time came to this place, hope everyone the GOOD LUCK!

=============================================================

Hi all:

I have download the pChart 2.13, and it can run with my webserver.

And I patch the syntax.php follow dokuwiki website https://www.dokuwiki.org/plugin:pchart .

replace getHtmlCode and doChart and getAllowedTypes and preg_replace and DoBar.

I input sample code and nothing display on the webpage.But the pChart not work.


Wed Oct 02, 2013 10:24 am
Profile
New pChart user
New pChart user

Joined: Wed Oct 02, 2013 9:07 am
Posts: 3
Post Re: When draw line how to include data from other file or pa
I think I shold begnig at the pDraw.class.php and pData.class.php


Fri Oct 04, 2013 1:20 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron