Active
Project:
Visualize
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2009 at 16:54 UTC
Updated:
16 Dec 2009 at 17:12 UTC
a grouped view breaks the charts here.
with a result set of 3 groups i get 6 (bar) charts like so:
1
1
1
2
2
3
which is not what is wanted.
Comments
Comment #1
geek-merlinbackground research:
below each table there is some javascript like so:
the class that is selected is the same for all grouping tables though, so all groupng tables are selected and given to the visualize handler. (i don't understand though why we don't get 3x3 charts)
Comment #2
geek-merlini see following options to resolve this bug:
(1) change classname to be unique for each grouping table
(2) change selector (in js above) to only select one table
(3) move js to a central place
Comment #3
geek-merlinfix-for-now:
although option (3) would be cleanes imho, here is a quick and dirty implementation for (2). this is not elegant as it relies on the caption and it WILL break if one group caption is a proper substring of another.
but works for me for now ;-)
in views-view-jquery-visualize.tpl.php
change line 57 to