View unanswered posts | View active topics It is currently Fri Mar 29, 2024 12:17 am



Reply to topic  [ 10 posts ] 
Feature requests 
Author Message
New pChart user
New pChart user

Joined: Mon Jan 03, 2011 9:50 pm
Posts: 3
Post Feature requests
Hi Jean-Damien,

First of all a BIG thank you for building this fantastic class. I've been using Zack Bloom's Advanced Graphing class, but since I've discovered your class about a month ago I'm converting my website to your class. It's very smooth and powerfull.

I've added/seconded three wishes to the wishlist:
- Support for a stock plot type of graph like: http://jpgraph.net/features/gallery.php#stock1
- Support for diagonal labels to prevent the labels from making the graph invisible
- A request for the pGeo class, which looks awesome. I'd love to be able to use it!

Thanks a lot!
Marco


Mon Jan 03, 2011 10:12 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Feature requests
Hi Marco,

Thank you for your feedback! Features requests are greatly appreciated and helps to determine in which direction this library should go. I have a few dezign question regarding your whishes, maybe you and other community users can bounce on it :

Stock Charts

In which way shall we present the data to the class? In a single data series, in a format like :

Code:
$myData->addPoints(array(open1,close1,min1,max1));
$myData->addPoints(array(open2,close2,min2,max2));
$myData->addPoints(array(open3,close3,min3,max3));
$myData->addPoints(array(open4,close4,min4,max4));

or in 4 separates data series like :

Code:
$myData->addPoints(array(open1,open2,open3,open4),"Open");
$myData->addPoints(array(close1,close2,close3,close4),"Close");
$myData->addPoints(array(min1,min2,min3,min4),"Min");
$myData->addPoints(array(max1,max2,max3,max4),"Max");

if we go for the second option, we can keep the current scaling algorithm.

Diagonal labels

I don't really catch what we're speaking here. I plan to add a "collision" detection system for data series labels that would avoid two labels to overlap.

pGeo class

This topic will be discussed in a near future ;o)

Kind regards,
JD.


Tue Jan 04, 2011 3:49 pm
Profile WWW
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: Feature requests
I think, this one is the best:
Code:
$myData->addPoints(array(open1,open2,open3,open4),"Open");
$myData->addPoints(array(close1,close2,close3,close4),"Close");
$myData->addPoints(array(min1,min2,min3,min4),"Min");
$myData->addPoints(array(max1,max2,max3,max4),"Max");

_________________
Image


Tue Jan 04, 2011 4:21 pm
Profile WWW
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Feature requests
pStock extension written, it currently accept the following tweaking options :

Code:
     $BorderR
     $BorderG
     $BorderB
     $BorderAlpha
     $Surrounding
     $SerieOpen
     $SerieClose
     $SerieMin
     $SerieMax
     $LineWidth
     $LineR
     $LineG
     $LineB
     $LineAlpha
     $ExtremityWidth
     $ExtremityLength
     $ExtremityR
     $ExtremityG
     $ExtremityB
     $ExtremityAlpha
     $BoxWidth
     $BoxUpR
     $BoxUpG
     $BoxUpB
     $BoxUpAlpha
     $BoxUpSurrounding
     $BoxUpBorderR
     $BoxUpBorderG
     $BoxUpBorderB
     $BoxUpBorderAlpha
     $BoxDownR
     $BoxDownG
     $BoxDownB
     $BoxDownAlpha
     $BoxDownSurrounding
     $BoxDownBorderR
     $BoxDownBorderG
     $BoxDownBorderB
     $BoxDownBorderAlpha


Attachments:
example.drawStockChart.png
example.drawStockChart.png [ 27.44 KiB | Viewed 12925 times ]
Wed Jan 05, 2011 11:35 am
Profile WWW
New pChart user
New pChart user

Joined: Mon Jan 03, 2011 9:50 pm
Posts: 3
Post Re: Feature requests
Wow, I didn't expect you would react so fast :) The stock graph looks great, exactly what I need! Both ways of presenting the data work fine for me, I'll just adjust my code to whichever way works best for you.

For the diagonal labels I probably mean the same as what you refer to as a collision detection system. See the attached picture for what I meant, in the middle there are several labels overlapping each other and the graph. If they could be rotated away from each other in some way it would greatly enhance the readability of the graph and labels.

Thanks for the great work!

McTrex


Attachments:
example.png
example.png [ 77.11 KiB | Viewed 12922 times ]
Wed Jan 05, 2011 12:44 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: Feature requests
The new class is documented here : http://wiki.pchart.net/doc.stocks.drawstockchart.html. I have another extension to write before releasing the 2.0.11.

Let's also see what we can do with the labels topic!

JD.


Wed Jan 05, 2011 1:43 pm
Profile WWW
Post Re: Feature requests
Hi Guys,

I'm not sure if this is a feature request or not, but I figured I'd throw it out here. I'm trying to construct a "balloon" type graph (similar to http://jpgraph.net/features/gallery.php balloon plot).

I've considered the drawPlot() method, but I don't think I can make different sized markers for points on the same plot. I also considered using drawCircle, but couldn't think of a good way of computing the vertical coordinates for the shape.

Any advice would be appreciated!

Thanks!


Tue Jan 11, 2011 1:35 am
Post Re: Feature requests
jean-damien wrote:
(...)
Let's also see what we can do with the labels topic!

JD.


Hello and Thanks for this great php chart library.

I vote also for labels enhancement since I'm getting some similar problems. I know that I'm using pchart1.x but I'm currently migrating to pChart2.x even if I will get same issue for labels :-)

As you can see on the following pic, I'm generating scuba dive profiles and labels seems not to be a solution for me. So if there is a possibility to get something like collision detection or fixing labels position, it can be a great enhancement for me :-p

Image

By the way, it's already amazing what can I do easily with your library, thanks for all.


Tue Jan 11, 2011 2:52 am
Post Re: Feature requests
Guest wrote:
Hi Guys,

I'm not sure if this is a feature request or not, but I figured I'd throw it out here. I'm trying to construct a "balloon" type graph (similar to http://jpgraph.net/features/gallery.php balloon plot).

I've considered the drawPlot() method, but I don't think I can make different sized markers for points on the same plot. I also considered using drawCircle, but couldn't think of a good way of computing the vertical coordinates for the shape.

Any advice would be appreciated!

Thanks!


check out http://wiki.pchart.net/doc.bubble.drawbubblechart.html


Thu Jan 13, 2011 12:19 am
Experienced pChart user
Experienced pChart user

Joined: Thu Dec 02, 2010 3:03 pm
Posts: 36
Location: Somerville, MA, USA
Post Re: Feature requests
Well, BubbleChart feature is not released yet.

_________________
Image


Thu Jan 13, 2011 12:23 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

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