pChart 2.x forum
http://wiki.pchart.net/forum/

Feature requests
http://wiki.pchart.net/forum/viewtopic.php?f=3&t=46
Page 1 of 1

Author:  McTrex [ Mon Jan 03, 2011 10:12 pm ]
Post subject:  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

Author:  jean-damien [ Tue Jan 04, 2011 3:49 pm ]
Post subject:  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.

Author:  mice32 [ Tue Jan 04, 2011 4:21 pm ]
Post subject:  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");

Author:  jean-damien [ Wed Jan 05, 2011 11:35 am ]
Post subject:  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 13576 times ]

Author:  McTrex [ Wed Jan 05, 2011 12:44 pm ]
Post subject:  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 13573 times ]

Author:  jean-damien [ Wed Jan 05, 2011 1:43 pm ]
Post subject:  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.

Author:  Guest [ Tue Jan 11, 2011 1:35 am ]
Post subject:  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!

Author:  Guest [ Tue Jan 11, 2011 2:52 am ]
Post subject:  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.

Author:  Guest [ Thu Jan 13, 2011 12:19 am ]
Post subject:  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

Author:  mice32 [ Thu Jan 13, 2011 12:23 am ]
Post subject:  Re: Feature requests

Well, BubbleChart feature is not released yet.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/