Ghost/ghost/admin/app/components/dashboard/v5/chart-monthly-revenue.hbs
Simon Backx 5b120d5574 Updated member count charts to use the new Stats API
refs https://github.com/TryGhost/Team/issues/1443
refs https://github.com/TryGhost/Team/issues/1458
refs https://github.com/TryGhost/Team/issues/1459

- Includes the new paid members chart (deltas)
- Reused the counts from the stats endpoint, instead of doing separate calls to the members api browse endpoint.
2022-03-31 16:09:41 +02:00

14 lines
448 B
Handlebars

<div class="gh-dashboard5-number"
{{did-insert this.loadCharts}}
>$32</div>
<small class="gh-dashboard5-info">Monthly revenue (MMR)</small>
{{#if this.loading}}
<div class="gh-dashboard5-loading" style={{html-safe (concat "height: " this.chartHeight "px;")}}/>
{{else}}
<EmberChart
@type={{this.chartType}}
@data={{this.chartData}}
@options={{this.chartOptions}}
@height={{this.chartHeight}} />
{{/if}}