From 3cd0e067a60e45bddb5be95c927eb2513aa67ad9 Mon Sep 17 00:00:00 2001 From: "Starlone (Estagiario)" Date: Mon, 17 May 2010 19:15:43 +0000 Subject: [PATCH] Acrescentando legendas aos graficos do Dashboard --- sigi/templates/snippets/modules/charts-convenios.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sigi/templates/snippets/modules/charts-convenios.html b/sigi/templates/snippets/modules/charts-convenios.html index 78042b2..458d040 100644 --- a/sigi/templates/snippets/modules/charts-convenios.html +++ b/sigi/templates/snippets/modules/charts-convenios.html @@ -3,7 +3,8 @@ {% chart as convenios %} {% chart-size 340 160 %} {% chart-type "pie" %} - {% chart-labels "Conveniadas" "Não conveniadas" "Não aderidas" %} + {% chart-labels convenios_chart_data %} + {% chart-legend "Conveniadas" "Não conveniadas" "Não aderidas" %} {% chart-data convenios_chart_data %} {% endchart %} @@ -18,10 +19,11 @@ {% endchart %} {% chart as equipamentos %} - {% chart-size 340 160 %} - {% chart-type "pie" %} - {% chart-labels "Recebidos" "Não recebidos" %} + {% chart-size 340 160 %} + {% chart-type "pie" %} + {% chart-labels equipamentos_chart_data %} {% chart-data equipamentos_chart_data %} + {% chart-legend "Recebidos" "Não recebidos" %} {% endchart %}