Can't see bar graph in ExampleUI plugin

I just upgraded our development server to 1.12. Right now, I’m unable to see the bar graph in the ExampleUI plugin, although the other six options (evolution graph, pie chart, etc.) are working just fine. Our production server (live) is still on 1.9.2 and the bar graph displays there.

The graph appears to show up in the code, but the screen remains blank. Here is the code found in Firebug:


<div class="jplot-bar" style="padding-left: 6px;">
<div class="piwik-graph" style="position: relative; width: 100%; height: 250px;" data-data={"params":{"axes":{"xaxis":{"ticks":["0h"," ","2h"," ","4h"," ","6h"," ","8h"," ","10h"," ","12h"," ","14h"," ","16h"," ","18h"," ","20h"," ","22h"," "],"labels":["0h","1h","2h","3h","4h","5h","6h","7h","8h","9h","10h","11h","12h","13h","14h","15h","16h","17h","18h","19h","20h","21h","22h","23h"]},"yaxis":{"tickOptions":{"formatString":"%s\u00b0C"}}},"series":[{"label":"Temperature","internalLabel":"value","yaxis":"yaxis"}],"seriesColors":["#5170AE","#F3A010","#CC3399","#9933CC","#80a033","#246AD2","#FD16EA","#49C100"]},"data":[[65,51,53,64,50,68,54,59,73,60,52,58,72,66,61,62,56,71,55,70,67,69,57,63]],"tooltip":{"yUnits":["\u00b0C"],"percentages":[[4,3,4,4,3,5,4,4,5,4,4,4,5,4,4,4,4,5,4,5,5,5,4,4]]},"seriesPicker":[]}" data-graph-type="bar">
</div></div>

Is anyone else having this issue? I’ve tested it in both Firefox, Chrome, and IE 8 with no result. I’d like to format ExampleUI into a test plugin, but I need the bar graph to work. Thank you!

you are right, looks like we broke this in 1.12.

We are now working on 2.0 and will fix this problem there (along with making improvements to the Plugins API and visualization layer). Stay tuned!

Thanks! Glad it was not just me. :slight_smile:

One more question – I am a PHP novice, so this may sound dumb – but when I click “Day,” “Week,” , or “Month” on the Evolution Graph section of the ExampleUI plugin, it gives me strange points on the x axis. Instead of seeing the last 30 days’ for “Month,” I see the last 30 months. The same happens when I click “Weeks:” 12-Nov to 18-Nov-12, 19-Nov to 25-Nov-12, etc. – 30 points of this up until the current week.

I tried changing the “last30” variable in the getTemperaturesEvolution to $date, but it gave me different results – 26 data points, from 10-Dec to 16-Dec-12, etc. I’m guessing this is a default value somewhere?

How would I change it so when a user clicks “Week,” it only shows the past 7 days’ temperature values? (Or 30 days for “Month.” :)) I did notice it works by day if you put in a date range.