View unanswered posts | View active topics It is currently Sun Apr 28, 2024 8:09 pm



Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
pChart and Overlib 
Author Message
pChart user
pChart user

Joined: Fri Apr 08, 2011 2:11 pm
Posts: 4
Post Re: pChart and Overlib
Unfortunately I have only tested it with the "old" kind of charts. As that was what I needed right now, so it works exactly like the old way.

But can I upload the files anywhere? I know it is a simple way of doing it, but it solved my problem right now. I have not had the experience with the more advanced and complex charts (yet).

I forgot:
I also added this to pDraw class:
Code:
   /* Image Map settings */
   var $BuildMap         = FALSE;
   var $MapFunction      = NULL;
   var $tmpFolder        = "tmp/";
   var $MapID            = NULL;


Fri Apr 08, 2011 2:43 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: pChart and Overlib
You've re-activated my curiosity! I've just written a piece of code that handle on the fly image map creation & binding in JavaScript :

Code:
<img src='test.png' id='testPicture' width='756' height='161' alt='' class='pChartPicture'/>

<script>
  createMap('pictureMap');
  bindMap('testPicture','pictureMap');
  addArea('pictureMap','RECT','0,0,20,20','alert("Rect area");');
  addArea('pictureMap','CIRCLE','30,30,10','alert("Circle area");');
</script>


I'll use it as a base to rewrite this functionnality in the v2 trunk. I have some other ideas that will make it better and easier to use than in the v1 (no need anymore to create temporary files, better code integration,.. )

Thank you!
JD.


Fri Apr 08, 2011 3:34 pm
Profile WWW
pChart user
pChart user

Joined: Fri Apr 08, 2011 2:11 pm
Posts: 4
Post Re: pChart and Overlib
That sounds great, I am happy to add a small contribute. And I will be looking forward to your new solution.

I agree that the solution you describe will be better than the v1 method. But it was a fast way to add mouseover functionallity very fast. :D


Fri Apr 08, 2011 6:07 pm
Profile
Site Admin
Site Admin
User avatar

Joined: Thu Dec 02, 2010 2:31 pm
Posts: 409
Location: France
Post Re: pChart and Overlib
Image map support is now partially implemented in the next subversion (2.1.2). It will be fully available when I'll release this new version.

Client maps can be applied to the charts datapoints or to any geometrical parts of your image.

I've removed the overlib support and directly coded a tooltype javascript extension (allowing smooth move & fading)

Thanks for your patience.


Attachments:
imagemap.png
imagemap.png [ 14.48 KiB | Viewed 8017 times ]
Fri Apr 15, 2011 10:36 am
Profile WWW
pChart user
pChart user

Joined: Fri Apr 08, 2011 2:11 pm
Posts: 4
Post Re: pChart and Overlib
Sounds great, I am looking forward to try it.


Sat Apr 16, 2011 1:18 am
Profile
New pChart user
New pChart user

Joined: Wed Jun 08, 2011 8:29 pm
Posts: 1
Post Re: pChart and Overlib
Could you give an example of how to implement the image map/mouseover into the chart php page?


Wed Jun 08, 2011 8:30 pm
Profile
New pChart user
New pChart user

Joined: Wed May 04, 2011 4:20 am
Posts: 2
Post Re: pChart and Overlib
You said it is partially available in version 2.1.2, I signed up to be an early adopter, but I didnt see access to subversion. Can one access subversion for pchart? Or do I need to wait until a beta release?

Thanks!


Sun Jun 26, 2011 2:47 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page Previous  1, 2

Who is online

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