|
|
@ -8,6 +8,7 @@ |
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}admin/js/core.js"></script> |
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.min.js"></script> |
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.init.js"></script> |
|
|
|
<script type="text/javascript" src="{{ STATIC_URL }}js/Chart.min.js"></script> |
|
|
|
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"> </script> |
|
|
|
<script type="text/javascript"> |
|
|
|
(function($) { |
|
|
@ -47,89 +48,111 @@ |
|
|
|
}) |
|
|
|
})(django.jQuery); |
|
|
|
</script> |
|
|
|
{# Highcharts scripts #} |
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> |
|
|
|
<script src="http://code.highcharts.com/highcharts.js"></script> |
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
$(function () { |
|
|
|
var chart; |
|
|
|
|
|
|
|
$(document).ready(function () { |
|
|
|
|
|
|
|
// Build the chart |
|
|
|
$('#processos_conv').highcharts({ |
|
|
|
chart: { |
|
|
|
plotBackgroundColor: null, |
|
|
|
plotBorderWidth: null, |
|
|
|
plotShadow: false |
|
|
|
}, |
|
|
|
title: { |
|
|
|
text: 'Processos de convênios por projeto <br/> {{ g_conv_proj.0 }}' |
|
|
|
<script> |
|
|
|
{% for num, dados in dados_graficos_convenio_projeto %} |
|
|
|
var pieData{{ num }} = [ |
|
|
|
{% for label, value, color, highlight in dados %} |
|
|
|
{# {% if not forloop.first %}#} |
|
|
|
{ |
|
|
|
label: "{{ label }}", |
|
|
|
value: {{ value }}, |
|
|
|
color:"{{ color }}", |
|
|
|
highlight: "{{ highlight }}" |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>' |
|
|
|
}, |
|
|
|
plotOptions: { |
|
|
|
pie: { |
|
|
|
allowPointSelect: true, |
|
|
|
cursor: 'pointer', |
|
|
|
dataLabels: { |
|
|
|
enabled: false |
|
|
|
}, |
|
|
|
showInLegend: true |
|
|
|
} |
|
|
|
}, |
|
|
|
series: [{ |
|
|
|
type: 'pie', |
|
|
|
name: 'Browser share', |
|
|
|
data: [ |
|
|
|
{% for k, v in g_conv_proj %} |
|
|
|
{% if not forloop.first %} |
|
|
|
['{{ k }}', {{ v }}], |
|
|
|
{% endif %} |
|
|
|
{# {% endif %}#} |
|
|
|
{% endfor %} |
|
|
|
] |
|
|
|
}] |
|
|
|
}); |
|
|
|
$('#processos_conv_ass').highcharts({ |
|
|
|
chart: { |
|
|
|
plotBackgroundColor: null, |
|
|
|
plotBorderWidth: null, |
|
|
|
plotShadow: false |
|
|
|
}, |
|
|
|
title: { |
|
|
|
text: 'Convênios assinados por projeto <br/> {{ g_convassinado_proj.0 }}' |
|
|
|
}, |
|
|
|
tooltip: { |
|
|
|
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>' |
|
|
|
}, |
|
|
|
plotOptions: { |
|
|
|
pie: { |
|
|
|
allowPointSelect: true, |
|
|
|
cursor: 'pointer', |
|
|
|
dataLabels: { |
|
|
|
enabled: false |
|
|
|
}, |
|
|
|
showInLegend: true |
|
|
|
} |
|
|
|
}, |
|
|
|
series: [{ |
|
|
|
type: 'pie', |
|
|
|
name: 'Browser share', |
|
|
|
data: [ |
|
|
|
{% for k, v in g_convassinado_proj %} |
|
|
|
{% if not forloop.first %} |
|
|
|
['{{ k }}', {{ v }}], |
|
|
|
{% endif %} |
|
|
|
window.onload = function(){ |
|
|
|
var ctx = document.getElementById("chart-area-1").getContext("2d"); |
|
|
|
window.myPie = new Chart(ctx).Pie(pieData1).generateLegend(); |
|
|
|
var ctx = document.getElementById("chart-area-2").getContext("2d"); |
|
|
|
window.myPie = new Chart(ctx).Pie(pieData2).generateLegend(); |
|
|
|
}; |
|
|
|
{% endfor %} |
|
|
|
] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
</script> |
|
|
|
{# Highcharts scripts #} |
|
|
|
{# <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>#} |
|
|
|
{# <script src="http://code.highcharts.com/highcharts.js"></script>#} |
|
|
|
{##} |
|
|
|
{# <script type="text/javascript">#} |
|
|
|
{# $(function () {#} |
|
|
|
{# var chart;#} |
|
|
|
{##} |
|
|
|
{# $(document).ready(function () {#} |
|
|
|
{##} |
|
|
|
{# // Build the chart#} |
|
|
|
{# $('#processos_conv').highcharts({#} |
|
|
|
{# chart: {#} |
|
|
|
{# plotBackgroundColor: null,#} |
|
|
|
{# plotBorderWidth: null,#} |
|
|
|
{# plotShadow: false#} |
|
|
|
{# },#} |
|
|
|
{# title: {#} |
|
|
|
{# text: 'Processos de convênios por projeto <br/> {{ g_conv_proj.0 }}'#} |
|
|
|
{# },#} |
|
|
|
{# tooltip: {#} |
|
|
|
{# pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'#} |
|
|
|
{# },#} |
|
|
|
{# plotOptions: {#} |
|
|
|
{# pie: {#} |
|
|
|
{# allowPointSelect: true,#} |
|
|
|
{# cursor: 'pointer',#} |
|
|
|
{# dataLabels: {#} |
|
|
|
{# enabled: false#} |
|
|
|
{# },#} |
|
|
|
{# showInLegend: true#} |
|
|
|
{# }#} |
|
|
|
{# },#} |
|
|
|
{# series: [{#} |
|
|
|
{# type: 'pie',#} |
|
|
|
{# name: 'Browser share',#} |
|
|
|
{# data: [#} |
|
|
|
{# {% for k, v in g_conv_proj %}#} |
|
|
|
{# {% if not forloop.first %}#} |
|
|
|
{# ['{{ k }}', {{ v }}],#} |
|
|
|
{# {% endif %}#} |
|
|
|
{# {% endfor %}#} |
|
|
|
{# ]#} |
|
|
|
{# }]#} |
|
|
|
{# });#} |
|
|
|
{# $('#processos_conv_ass').highcharts({#} |
|
|
|
{# chart: {#} |
|
|
|
{# plotBackgroundColor: null,#} |
|
|
|
{# plotBorderWidth: null,#} |
|
|
|
{# plotShadow: false#} |
|
|
|
{# },#} |
|
|
|
{# title: {#} |
|
|
|
{# text: 'Convênios assinados por projeto <br/> {{ g_convassinado_proj.0 }}'#} |
|
|
|
{# },#} |
|
|
|
{# tooltip: {#} |
|
|
|
{# pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'#} |
|
|
|
{# },#} |
|
|
|
{# plotOptions: {#} |
|
|
|
{# pie: {#} |
|
|
|
{# allowPointSelect: true,#} |
|
|
|
{# cursor: 'pointer',#} |
|
|
|
{# dataLabels: {#} |
|
|
|
{# enabled: false#} |
|
|
|
{# },#} |
|
|
|
{# showInLegend: true#} |
|
|
|
{# }#} |
|
|
|
{# },#} |
|
|
|
{# series: [{#} |
|
|
|
{# type: 'pie',#} |
|
|
|
{# name: 'Browser share',#} |
|
|
|
{# data: [#} |
|
|
|
{# {% for k, v in g_convassinado_proj %}#} |
|
|
|
{# {% if not forloop.first %}#} |
|
|
|
{# ['{{ k }}', {{ v }}],#} |
|
|
|
{# {% endif %}#} |
|
|
|
{# {% endfor %}#} |
|
|
|
{# ]#} |
|
|
|
{# }]#} |
|
|
|
{# });#} |
|
|
|
{# });#} |
|
|
|
{##} |
|
|
|
{# });#} |
|
|
|
{# </script>#} |
|
|
|
{# end highcharts scripts #} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|