Bugzilla – Attachment 33369 Details for
Bug 13219
Add graphs to guided reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Added Charts to issues report
Added-Charts-to-issues-report.patch (text/plain), 1.91 KB, created by
Martin Renvoize (ashimema)
on 2014-11-07 09:36:01 UTC
(
hide
)
Description:
Added Charts to issues report
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2014-11-07 09:36:01 UTC
Size:
1.91 KB
patch
obsolete
>From 5870a6c193ef5c30e89db892366704270c410709 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 7 Nov 2014 09:24:44 +0000 >Subject: [PATCH] Added Charts to issues report > >http://bugs.koha-community.org/show_bug.cgi?id=13219 >--- > .../prog/en/modules/reports/issues_stats.tt | 22 ++++++++++++++++++++ > 1 file changed, 22 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt >index a757ef5..370c928 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/issues_stats.tt >@@ -22,6 +22,7 @@ > [% IF ( do_it ) %] > [% FOREACH mainloo IN mainloop %] > <h1>Circulation statistics</h1> >+ <canvas id="circChart" width="1000" height="400"></canvas> > [% IF ( mainloo.loopfilter ) %] > <p>Filtered on:</p> > <ul> >@@ -295,4 +296,25 @@ > [% INCLUDE 'reports-menu.inc' %] > </div> > </div> >+[% IF ( do_it ) %] >+<script type="text/javascript"> >+ var ctx = $("#circChart").get(0).getContext("2d"); >+ var circChart = new Chart(ctx).Bar({ >+ labels: [[% FOREACH loopco IN mainloo.loopcol %]"[% loopco.coltitle_display |html %]", [% END %]], >+ datasets: [ >+ [% FOREACH loopro IN mainloo.looprow %]{ >+ label: "[% loopro.rowtitle_display or "UNKNOWN VALUE" |html %]", >+ fillColor: "rgba(151,187,205,0.2)", >+ strokeColor: "rgba(151,187,205,1)", >+ pointColor: "rgba(151,187,205,1)", >+ pointStrokeColor: "#fff", >+ pointHighlightFill: "#fff", >+ pointHighlightStroke: "rgba(151,187,205,1)", >+ data: [[% FOREACH loopcel IN loopro.loopcell %]"[% loopcel.value %]", [% END %]] >+ }, [% END %]] >+ }, {}); >+ >+ circChart.update(); >+</script> >+[% END %] > [% INCLUDE 'intranet-bottom.inc' %] >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13219
:
33368
|
33369
|
33370
|
33371
|
33372
|
39777
|
39778
|
39779
|
39780
|
39781
|
39782