From 68be58c9f2f42a6fbc4c62cd5c91db89f642bfa4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 18 Mar 2017 07:46:14 +0100 Subject: [PATCH] Line chart --- public/js/ff/budgets/show.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/js/ff/budgets/show.js b/public/js/ff/budgets/show.js index 07cf18ed9e..5831c82031 100644 --- a/public/js/ff/budgets/show.js +++ b/public/js/ff/budgets/show.js @@ -8,11 +8,15 @@ * See the LICENSE file for details. */ -/** global: budgetChartUri */ +/** global: budgetChartUri,budgetLimitID */ $(function () { "use strict"; - - columnChart(budgetChartUri, 'budgetOverview'); + if (budgetLimitID > 0) { + lineChart(budgetChartUri, 'budgetOverview'); + } + if (budgetLimitID == 0) { + columnChart(budgetChartUri, 'budgetOverview'); + } });