|
376 | 376 | </div>
|
377 | 377 | <script>
|
378 | 378 | var statusGroup = {
|
379 |
| - ParentCount: @Model.ReportStatusStats.ParentCount, |
| 379 | + parentCount: @Model.ReportStatusStats.ParentCount, |
380 | 380 | passParent: @Model.ReportStatusStats.ParentCountPass,
|
381 | 381 | failParent: @Model.ReportStatusStats.ParentCountFail,
|
382 | 382 | fatalParent: @Model.ReportStatusStats.ParentCountFatal,
|
383 | 383 | errorParent: @Model.ReportStatusStats.ParentCountError,
|
384 | 384 | warningParent: @Model.ReportStatusStats.ParentCountWarning,
|
385 | 385 | skipParent: @Model.ReportStatusStats.ParentCountSkip,
|
386 | 386 | exceptionsParent: @Model.ReportStatusStats.ParentCountExceptions,
|
387 |
| - ChildCount: @Model.ReportStatusStats.ChildCount, |
| 387 | + childCount: @Model.ReportStatusStats.ChildCount, |
388 | 388 | passChild: @Model.ReportStatusStats.ChildCountPass,
|
389 | 389 | failChild: @Model.ReportStatusStats.ChildCountFail,
|
390 | 390 | fatalChild: @Model.ReportStatusStats.ChildCountFatal,
|
|
394 | 394 | infoChild: @Model.ReportStatusStats.ChildCountInfo,
|
395 | 395 | debugChild: @Model.ReportStatusStats.ChildCountDebug,
|
396 | 396 | exceptionsChild: @Model.ReportStatusStats.ChildCountExceptions,
|
397 |
| - GrandChildCount: @Model.ReportStatusStats.GrandChildCount, |
| 397 | + grandChildCount: @Model.ReportStatusStats.GrandChildCount, |
398 | 398 | passGrandChild: @Model.ReportStatusStats.GrandChildCountPass,
|
399 | 399 | failGrandChild: @Model.ReportStatusStats.GrandChildCountFail,
|
400 | 400 | fatalGrandChild: @Model.ReportStatusStats.GrandChildCountFatal,
|
|
471 | 471 |
|
472 | 472 | /* -- [ children chart ] -- */
|
473 | 473 | (function drawChildChart() {
|
474 |
| - if (typeof statusGroup !== "undefined") { |
| 474 | + if (typeof statusGroup !== "undefined" && statusGroup.childCount > 0) { |
475 | 475 | var config = {
|
476 | 476 | type: 'doughnut',
|
477 | 477 | data: {
|
|
496 | 496 |
|
497 | 497 | /* -- [ grand-children chart ] -- */
|
498 | 498 | (function drawGrandChildChart() {
|
499 |
| - if ($('#grandchild-analysis').length > 0 && typeof statusGroup !== "undefined") { |
| 499 | + if ($('#grandchild-analysis').length > 0 && typeof statusGroup !== "undefined" && statusGroup.grandChildCount > 0) { |
500 | 500 | var config = {
|
501 | 501 | type: 'doughnut',
|
502 | 502 | data: {
|
|
533 | 533 | if (typeof timeline !== "undefined") {
|
534 | 534 | var datasets = [];
|
535 | 535 | for (var key in timeline) {
|
536 |
| - datasets.push({ label:key, data: [ timeline[key] ], backgroundColor: getRandomColor(), borderWidth: 1 }); |
| 536 | + datasets.push({ label:key, data:[timeline[key]], backgroundColor: getRandomColor(), borderWidth: 1 }); |
537 | 537 | }
|
538 |
| -
|
539 | 538 | var ctx = document.getElementById('timeline').getContext('2d');
|
540 | 539 |
|
541 | 540 | new Chart(ctx, {
|
|
0 commit comments