Hi all,

I would like to know if it's possible to make a graph with axis y and x labels. I have tried to use the same parameters as 'progressive dot', but there is no way for doing the same....

Is a mistake of the php instead the own raphael js api?

Thanks a lot.

Comments

mikl’s picture

Title: String labels on 'line' graph » String labels on 'line' graph via PHP
Category: bug » feature

I am not sure this is possible via our PHP API, but it works fine if done via JavaScript.

m3n0R’s picture

can you show an example of a graph made by javascript? It would be useful if the example module had more documentation about how to use javascript code :P

Thank you so much mikl. I'm wait for the Raphael graphs 2.0 anxiously!!

mikl’s picture

Yeah, documentation is probably the weakest point of Raphaël – I learned what I know from looking at the examples at http://g.raphaeljs.com/ :)

rickmanelius’s picture

subscribing.

k3n3dy’s picture

The javascript part of Raphael is not really an issue, we can find lots of good examples. Send data to the javascript is my issue. It would help so much if I could find a javascript example showing how to query data from database or from a View and then pass it to javascript to display the graph.

mikl’s picture

Category: feature » support
chrsnlsn’s picture

Any new info on this?
It's working great for plotting dynamic data from the database or external feeds, but I'm having trouble fine tuning with labels, legends, hover effects etc. If the solution is to build the chart entirely from the js what's the best way to get the data to the js function from a module?
Thanks for any insight

[edit]
at the top of the graphael.jquery.js file it says you should be able to retrive and add functionality to a graph with this

$('div.my-graph').bind('init.graphael', function() {
     $(this).graphael('get');
});

but that is creating another graph on my page not getting the one that's been built already. What am I missing?