Bugzilla – Attachment 39778 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]
[SIGNED-OFF] Bug 13219: Added Charts to issues report
SIGNED-OFF-Bug-13219-Added-Charts-to-issues-report.patch (text/plain), 2.00 KB, created by
Bernardo Gonzalez Kriegel
on 2015-06-02 17:05:07 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 13219: Added Charts to issues report
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2015-06-02 17:05:07 UTC
Size:
2.00 KB
patch
obsolete
>From f9edfdb331a49a5436ea49d550673030d165f06c 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] [SIGNED-OFF] Bug 13219: Added Charts to issues report > >http://bugs.koha-community.org/show_bug.cgi?id=13219 >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > .../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.9.5
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