Open mikebronner opened 10 years ago
This error went away after including the vendor files as used in the examples. (I had previously included the d3 files from the wordpress plugin.)
Ah, correction: this wasn't down to the includes. This was happening for AJAX charts, but not for static charts (I had reverted back to static for testing).
Just hit the same issue. The cause is your x axis declaration -- it needs to be placed into an onComplete callback like so:
var graph = new Rickshaw.Graph.Ajax( {
...
onComplete: function(transport) {
var graph = transport.graph;
var x_axis = new Rickshaw.Graph.Axis.Time({ graph: graph } );
}
An example for HoverDetail is at http://code.shutterstock.com/rickshaw/guide/ajax-1.html, but the idea is the same.
Getting the following error in Safari:
Using the following code: