Clickable Elements in pchart? [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've been looking for a good open-source tool for creating graphs in PHP, and pChart is looking like a great candidate.
One need I have is to be able to click on certain elements of the graph, like a category label or an individual bar, to drill-down into the data, and display new data and new graphs on a new page.
Is this something that pChart supports? I know that it outputs image files, and I know that, in a pinch, I could try using HTML Image Maps to make parts of the chart clickable, but I'm hoping there's a more automated way.
If pCharts doesn't support this functionality, is there another php charting package you would reccomend that does? It would need to be open-source, and locally hosted (no Google Chart-type API's).
Thanks!

pChart does not support this directly, last I checked.
However, you can do it with CSS and overlaid elements! One site where you can see an example of this in action is http://craftcult.com/heartchart.php?userid=sugarpinkboutique (press the Get Chart button on the top chart for an example, choose 'seller buyers separate' first for a more elaborate example).
Essentially, you can overlay clickable elements over the chart using JavaScript and/or CSS/HTML. I suggest using absolute positioning in your CSS, and creating the elements with JS based on the data used to create the chart.
I do enjoy working with pChart. It's pretty well-written and flexible. I also saw this link here on SO relating to a library for doing something similar in JS : http://pchart.sunyday.net/ImageMap/

Related

Is it possible to embed a clickable url into certain part of a image? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
For example i have a jpeg image of a man standing on a table. I want to insert a clickable url to his shirt and also the table which he is standing. Is it possible to do?
You can achieve this using <map>
Image Map is a way that allow you to define certain area to be linked within a single image on a web page. This means that, rather than having to link the whole image as one link, you can have lots of different links within that one image.
You will get good tutorial here
It's in fact possible. You have to use <map> tag. Reference. There are a lot of tools online that allow you to create this image map.
I don't know of any specific way to 'mask' specific objects. But the closest that comes to mind is an imagemap (). In an imagemap you can define specific areas (rectangles) to link to certain pages.

PHP library for SVG dynamic graphs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I was (quite) happy to use jpgraph for graphs in PHP, and when in need of "dynamicity", I just added the image map, handled hover and click events etc. (a bit clumsy in jpgraph, but possible).
But now I've seen pretty cool graphs made in SVG. I didn't know this dynamicity is possible in SVG!
Can you recommend any SVG dynamic graph library for PHP that could replace jpgraph in this sense? Thanks a lot.
Many libraries are using <canvas> instead of SVG. Then, it will really depends on your needs, but D3 is very impressive.
D3
Flot
gRaphael
Try this Raphael js add-on for charting.
http://g.raphaeljs.com/
From a PHP perspective, have a look at this, which looks good, maintained and interactive. Not sure if it covers all your dynamicity needs.
Looking for an alternative for jpGraph which started to cause complaints after upgrading the 'P' part in MAMP, I stumbled upon SVGGraph. Didn't convert my graphs to it yet.

Looking for PHP/Flash graphics library for interactive networked object presentation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We are looking for a PHP library something like graphviz.org which generates an image of a networked groups of objects as shown below. Graphviz also enables you to make each of the nodes a hyperlink, but we are looking for something more interactive, e.g. even with Flash that would be able to react to a click which deletes a node and quickly redraws that area so the other nodes fill in the space, etc.
Does anyone know of a PHP library which generates networked object maps like this but that are also interactive so that nodes can easily added and deleted etc.?
You can give jsPlumb a try:
http://code.google.com/p/jsplumb/
Demo:
http://jsplumb.org/jquery/dynamicAnchorsDemo.html
JsPlumb is cool but you have to position the nodes yourself.
Take a look at http://arborjs.org. It will take care of positioning. The problem there is when you try the examples keep an eye on your cpu usage in firefox :(
See also:
http://www.graphdracula.net/showcase/
http://flare.prefuse.org/demo
http://mbostock.github.com/protovis/ex/force.html
http://js-graph-it.sourceforge.net/index.html
https://github.com/jackrusher/jssvggraph
http://code.google.com/p/jsdot/
http://cytoscapeweb.cytoscape.org/demo
http://flare.prefuse.org/launch/apps/dependency_graph
http://hypertree.woot.com.ar/
I have been in your boat bro. If you can take care of node positioning yourself stick with JsPlumb. They just released 1.3.1 and its a nice release.

PHP data to chart to image to pdf [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I would like to generate a chart from a dataset and eventually put it in a pdf format. How would I go about doing this? Which packages would you recommend?
A solution might to go in two steps :
first, generate the chart, and save it as an image
then, embed this image in a PDF file
About the first point, there are many questions/answers that might help you ; for instance :
Graphs/Charts in PHP
What is the best open source PHP charting solution
Free Chart Libraries for PHP
References on creating Charts/Graphs in PHP ?
About the second point, I've not done that quite often, but I suppose Zend_Pdf, for instance, could be helpful -- note there are probably other solutions too !
I would look into these:
gChartPHP
pChart
Open Flash Chart
Dynamically Generate PDF file with
PHP
Take a look at the Diagrams AddOn for fpdf.
I've never used it but would give it a try before storing a raster image of a chart in a pdf.
You can insert charts in PDF as an image too.
Google's Image Charts is deprecated but still works.
A ditto copy of Google's Image Charts is Image Charts which has free version with their watermark.

Guitar Tablature and Music sheet oriented plugins for wordpress or Drupal [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm familiar with wordpress and cakePHP; however, I'm building a small community website (hobby) that allows users to post music sheet (pdf/image) or guitar tabs ( text files). These music sheets should be organized by artists and songs. I've already built my own cms, but I'm not looking forward to maintain it as i'm scared I won't have the time.
An example of this would be ultimate-guitar.com . Not the whole site, just the way they display tabs and stuff
I posted a 1 month old build for you guys to see what i've done here. the site for the most part works, but as i said, I'm scared that i won't be able to maintain it. This is not the latest build, i haven't gotten around to uploading it. It fixes most of the issues
Are there any music publishing plugins for drupal and wordpress (I haven't seen any personally)?
I'm open to other suggestions and comments as well so please feel free to mention them
It doesn’t sound like you have any music specific needs, you just need to be able to attach text, pdf or images to an item (node in Drupal) and assign tags to it.
You can use taxonomy in Drupal to assign artists to the nodes. I should think what you want is pretty simple to do. I would suggest that you try installing it and seeing what it can do.
You might want to take a look at the Guitar module, which will allow you to easily add chord fingerings to your tabs.

Categories