I installed flot module and no chart is getting displayed. (I have installed all other modules required by flot properly). I get 2 links on my navigation menu, Flot example and Flot view example.
When I click flot example, It displays a blank page with only a title reading "Flot example".
When I click , Flot views example I get the following error...
Fatal error: Call to a member function pre_render() on a non-object in /var/www/d7/sites/all/modules/views/includes/view.inc on line 1133
I tried putting this code in a node body with php enabled,
<?php
$d1 = new flotData(array(array(0, 1), array(4, 8), array(8, 5)));
$d2 = new flotData(array(array(0, 8), array(3, 5), array(8, 0.5)));
$variables = array(
'data' => array($d1, $d2),
'element' => array(
'id' => 'flot-example-normal',
'class' => 'flot-example',
'style' => "width:600px;height:400px",
),
);
return theme_flot_graph($variables);
?>
Again, I get nothing just a blank node body.
So how can I fix it..??
Comments
Comment #1
akshaynhegde commentedIs anybody out there..??? no one facing the same issue as I am..???
Comment #2
jun commentedFacing the same issue. Subscribing.
Comment #3
jun commentedOk, well I got rid of the first problem of the blank page by downloading the flot library http://code.google.com/p/flot/downloads/list into modules/flot (path will be modules/flot/flot/jquery.js)
I found that Flot Fields now works.
flot_views_example still gives the same error as above though..
Comment #4
attiks commentedi'll have a look
Comment #5
btc97 commentedHi Attiks, have you been able to replicate the error? I get the same error for flot view example and raw flot example view:
An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/view/flot_example/preview/page/ajax
StatusText: OK
ResponseText:
Fatal error: Call to a member function pre_render() on a non-object in /Users/ben/Sites/aca/sites/all/modules/views/includes/view.inc on line 1133
Comment #6
attiks commentedI'll ask Jelle_S if he has time today
Comment #7
jelle_sFixed in the latest dev version =)
Comment #8
btc97 commentedThanks Jelle_S and attiks! The views error is gone!
Comment #10
robertwb commentedI have a similar problem with a blank flot view with title "Flot Example View" and nothing else. I have downloaded the Libraries module, which seemed to be necessary to let flot know where the libraries were living? Links to the flot JS libraries appear in the HTML of the rendered view, but there is a single error in the javascript debugger (I am using Chrome):
Uncaught Error: Time mode requires the flot.time plugin.I have verified that the file "jquery.flot.time.js" exists in the library path.
Thoughts?