VizGrimoire / VizGrimoireJS-lib

VizGrimoireJS Library
GNU General Public License v3.0
4 stars 7 forks source link

Top charts not appearing in top widget #13

Open jgbarah opened 10 years ago

jgbarah commented 10 years ago

I'm using the following HTML and JSON code. I see the table with the list of ticket closers, but I cannot see the bar chart that (I gues) should appear. The only "strange" issue I see in the JSON file is that there are less than 10 closers, which is the specified limit... But I don't know if that matters.

<div class="Top" data-data-source="its" data-graph="bars"
             data-metric="closers" data-limit="10" data-people_links="true"></div>
{"closers.":{"id":[15,14,20,17,21,19],"closers":
["acs","dicortazar","jgbarah","athanrous","sduenas","sanacl"],"closed":
[36,18,7,1,1,1]},"closers.last year":{"id":[15,14,20,17,21,19],"closers":
["acs","dicortazar","jgbarah","athanrous","sduenas","sanacl"],"closed":
[33,18,7,1,1,1]},"closers.last month":{"id":[14,15,19,20,21],"closers":
["dicortazar","acs","sanacl","jgbarah","sduenas"],"closed":[5,5,1,1,1]},
"closers.last week":{"id":[15,20],"closers":["acs","jgbarah"],"closed":[3,1]}}
acs commented 10 years ago

The bar chart only appears if you specify it:

http://demo.bitergia.com/doc/

Pulse over "Top" button to see an example.

jgbarah commented 10 years ago

Do you mean that I should include a 'data-graph="bars"' parameter? I'm doing so.. See the HTML code in the first post for this issue (I'm sorry, I had messed up with the markup and the coded didn't appear: that's fixed now).

I'm reopening, just in case I was doing the right thing... Please, re-close if that's not the case.