33de0a0a49
* setup * add new clients to attribution * refactor serializers, move to util folder * cleanup export csv generator * fix isDateRange getter * remove new chart from partial/current month * fix export modal text * update version history text * update variable naming, remove new client data from current/partial month * add filtering by namespace to month over month charts * remove filtering for namespace by month, need to change serializer * add checks * update horizontal bar chart test * update tests * cleanup * address comments * fix flakey test * add new counts to export Co-authored-by: Claire Bontempo <cbontempo@hashicorp.com>
34 lines
988 B
Handlebars
34 lines
988 B
Handlebars
<svg
|
|
data-test-line-chart
|
|
class="chart has-grid"
|
|
{{on "mouseleave" this.removeTooltip}}
|
|
{{did-insert this.renderChart @dataset}}
|
|
{{did-update this.renderChart @dataset}}
|
|
>
|
|
</svg>
|
|
|
|
{{! TOOLTIP }}
|
|
|
|
{{#if this.tooltipTarget}}
|
|
{{! Required to set tag name = div https://github.com/yapplabs/ember-modal-dialog/issues/290 }}
|
|
{{! Component must be in curly bracket notation }}
|
|
{{! template-lint-disable no-curly-component-invocation }}
|
|
{{#modal-dialog
|
|
tagName="div"
|
|
tetherTarget=this.tooltipTarget
|
|
targetAttachment="bottom middle"
|
|
attachment="bottom middle"
|
|
offset="35px 0"
|
|
}}
|
|
<div class="chart-tooltip line-chart">
|
|
<p class="bold">{{this.tooltipMonth}}</p>
|
|
<p>{{this.tooltipTotal}}</p>
|
|
<p>{{this.tooltipNew}}</p>
|
|
{{#if this.tooltipUpgradeText}}
|
|
<br />
|
|
<p class="has-text-highlight">{{this.tooltipUpgradeText}}</p>
|
|
{{/if}}
|
|
</div>
|
|
<div class="chart-tooltip-arrow"></div>
|
|
{{/modal-dialog}}
|
|
{{/if}} |