2018-05-03 09:41:41 -04:00
|
|
|
{{#conditional-loading-section isLoading=isLoading title=report.title}}
|
2018-04-16 04:42:06 -04:00
|
|
|
<div class="chart-title">
|
2018-05-03 09:41:41 -04:00
|
|
|
<h3 title={{report.description}}>
|
|
|
|
{{report.title}}
|
2018-04-16 04:42:06 -04:00
|
|
|
|
2018-05-03 09:41:41 -04:00
|
|
|
{{#if report.description}}
|
2018-04-26 08:49:41 -04:00
|
|
|
{{d-icon "question-circle"}}
|
2018-05-03 09:41:41 -04:00
|
|
|
{{/if}}
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div class="chart-trend {{trend}}">
|
2018-05-10 23:30:21 -04:00
|
|
|
{{#if average}}
|
|
|
|
<span title="{{report.trendTitle}}">
|
|
|
|
{{report.currentAverage}}%
|
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<span title="{{report.trendTitle}}">
|
|
|
|
{{number report.currentTotal noTitle="true"}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2018-05-03 09:41:41 -04:00
|
|
|
|
|
|
|
{{#if trendIcon}}
|
|
|
|
{{d-icon trendIcon}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-04-16 04:42:06 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="chart-container">
|
|
|
|
{{#if oneDataPoint}}
|
|
|
|
<span class="data-point">
|
2018-05-03 09:41:41 -04:00
|
|
|
{{number values.lastObject.y}}
|
2018-04-16 04:42:06 -04:00
|
|
|
</span>
|
|
|
|
{{else}}
|
|
|
|
<canvas class="chart-canvas"></canvas>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2018-05-03 09:41:41 -04:00
|
|
|
{{/conditional-loading-section}}
|