Skip to content

Commit

Permalink
Home page charts updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gitorko committed Jan 19, 2016
1 parent 46c56d2 commit 650c5fd
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/main/resources/public/js/custom/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $(document).ready(function () {
},
colors: ['#DB7093', '#FFDEAD', '#7B68EE', '#2E8B57'],
title: {
text: 'Active Requirement By Priority'
text: 'Active Covered Requirement By Priority'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
Expand Down Expand Up @@ -45,7 +45,7 @@ $(document).ready(function () {
},
colors: ['#336633', '#A52A2A', '#FFD700'],
title: {
text: 'Requirement By Status'
text: 'Covered Requirement By Status'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
Expand All @@ -72,16 +72,15 @@ $(document).ready(function () {
chart = new Highcharts.Chart(requirementStatusChart);
});

var testcaseRunChart = {
var runStatusChart = {
chart: {
renderTo: 'testcaseRunChart',
renderTo: 'runStatusChart',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
colors: ['#FF9966', '#99CC66', '#660066', '#00CCFF', '#FF6699'],
title: {
text: 'Monthly Test Run By'
text: 'Monthly Test Run Status'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
Expand All @@ -103,20 +102,21 @@ $(document).ready(function () {
}]
}

$.getJSON("/rest/testcase-run-data", function (json) {
testcaseRunChart.series[0].data = json;
chart = new Highcharts.Chart(testcaseRunChart);
$.getJSON("/rest/run-status-data", function (json) {
runStatusChart.series[0].data = json;
chart = new Highcharts.Chart(runStatusChart);
});

var runStatusChart = {
var testcaseRunChart = {
chart: {
renderTo: 'runStatusChart',
renderTo: 'testcaseRunChart',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
colors: ['#FF9966', '#99CC66', '#660066', '#00CCFF', '#FF6699'],
title: {
text: 'Monthly Test Run Status'
text: 'Monthly Test Run By'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
Expand All @@ -138,11 +138,10 @@ $(document).ready(function () {
}]
}

$.getJSON("/rest/run-status-data", function (json) {
runStatusChart.series[0].data = json;
chart = new Highcharts.Chart(runStatusChart);
$.getJSON("/rest/testcase-run-data", function (json) {
testcaseRunChart.series[0].data = json;
chart = new Highcharts.Chart(testcaseRunChart);
});


});

0 comments on commit 650c5fd

Please sign in to comment.