View unanswered posts | View active topics It is currently Thu May 16, 2024 10:11 pm



Reply to topic  [ 8 posts ] 
How to save Chart in webserver and client server. 
Author Message
pChart user
pChart user

Joined: Wed Mar 16, 2011 9:35 am
Posts: 7
Post How to save Chart in webserver and client server.
Hello,
I'm very new to pChart. Today I join in our group.

I have a Question, How to save a chart in web server or client server?

I start with examples program. Each program chart show in web browser not store in web browser. I'm using Linux server, I gave write permission to the folder "picture" using Linux command "chmod 777". What goes wrong?

Please tell me.

thanks,
thenndral


Wed Mar 16, 2011 10:38 am
Profile
pChart user
pChart user

Joined: Tue Mar 15, 2011 8:54 am
Posts: 7
Post Re: How to save Chart in webserver and client server.
pchart is "streaming" the image to the browser.

Have a look at the caching functions to get the actual images stored as physical files on the server.


Wed Mar 16, 2011 5:25 pm
Profile
pChart user
pChart user

Joined: Wed Mar 16, 2011 9:35 am
Posts: 7
Post Re: How to save Chart in webserver and client server.
Hello,

Thanks for your reply. I got it.

Now I'm start working pChart with mysql. everything goes fine.

I have a few questions,

1. If the chart value is many, showing data value in bar and x-axis in horizontal order. please see the attached picture. In X-axis also data value is collapse, because of many data. how to show the data clearly in bar and x-axis? I think if show the bar value and x-axis value in vertical order it may be clear view? how to show in vertical order?

2. shall we make 2 chart in a same query , ie 2 dataset. and make 2 chart . if it is possible how to make it. need code help.

for ex:
$qry = "select Dt_info, MVC, SVC, MTC, STC from tbl_val_count"

i want to make 2 chart in this query.
i]. chart dataset ---> dt_info,MVC, SVC
ii]. chart dataset ---> dt_info,MTC, STC

How can achieve this?

3. How to change chart bar color? I want to change chart color to "AFD8F8" and "F6BD0F".

Thanks so much.
thenndral


Attachments:
File comment: How to show data value and x-axis value in vertical order?
db_image.png
db_image.png [ 48.38 KiB | Viewed 10759 times ]
Thu Mar 17, 2011 5:34 am
Profile
pChart user
pChart user

Joined: Wed Mar 16, 2011 9:35 am
Posts: 7
Post Re: How to save Chart in webserver and client server.
Hello,

No replies, I need to finish this task.

Please let me know, how to solve.

thanks in advance
thenndral


Fri Mar 18, 2011 1:55 am
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: How to save Chart in webserver and client server.
Hi,

To create a picture file on the web server, take a look here : Script output and use the render() method.

1. You can set the LabelRotation parameter of the drawScale() format array to 90 in order to rotate the X-Axis labels

2. Creating multiple charts can be achieved by many ways. It depends if you want to draw all of them within the same scaling area of if your picture will contains multiple different charts. You may also take a look here : Combo charts

3. Changing the series colors can be achieved using the setPalette() function.

Kind regards,
JD.


Wed Mar 23, 2011 10:47 am
Profile WWW
pChart user
pChart user

Joined: Wed Mar 16, 2011 9:35 am
Posts: 7
Post Re: How to save Chart in webserver and client server.
Hi,

Thanks for your reply.

1. You can set the LabelRotation parameter of the drawScale() format array to 90 in order to rotate the X-Axis labels
yeah, i gave code like this,
$myPicture_1->drawScale(array("DrawSubTicks"=>TRUE,"Mode"=>SCALE_MODE_ADDALL_START0, "LabelRotation"=>90)); ===> works fine. thanks.

Display Value on series:
If the values must be written on the chart setting DisplayValues to TRUE or FALSE.I give "True" to display values.
how to rotate display value in the series. I have many series in the chart the values are not clear view. Please see my previous post image.

Thanks in advance,
thenndral.


Thu Mar 24, 2011 2:19 am
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: How to save Chart in webserver and client server.
Hello,

There is no option to rotate the simples labels yet. I'll plan to add it.

Kind regards,
JD.


Thu Mar 24, 2011 8:50 am
Profile WWW
pChart user
pChart user

Joined: Wed Mar 16, 2011 9:35 am
Posts: 7
Post Re: How to save Chart in webserver and client server.
Thanks for your fastest reply.
I'm expecting for a great code.
I'm sorry, when can we expect this feature? could you please tell me.

Thanks once again,
thenndral.


Thu Mar 24, 2011 9:02 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 11 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