| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** global: Analytics */ |
||
| 8 | initChart: function() { |
||
| 9 | this.base(); |
||
| 10 | |||
| 11 | var $reportTitle = $('<div class="subtitle" />').prependTo(this.$chart), |
||
| 12 | $period = $('<div class="period" />').appendTo($reportTitle), |
||
| 13 | $view = $('<div class="view" />').appendTo($reportTitle), |
||
| 14 | $title = $('<div class="title" />').prependTo(this.$chart); |
||
| 15 | |||
| 16 | $view.html(this.data.view); |
||
| 17 | $title.html(this.data.dimension); |
||
| 18 | $period.html(this.data.metric + " " + this.data.periodLabel); |
||
| 19 | |||
| 20 | this.dataTable = Analytics.Utils.responseToDataTable(this.data.chart, this.localeDefinition); |
||
| 21 | this.chartOptions = Analytics.ChartOptions.pie(); |
||
| 22 | this.chart = new google.visualization.PieChart(this.$graph.get(0)); |
||
| 23 | |||
| 24 | this.chartOptions.height = this.$graph.height(); |
||
| 25 | |||
| 26 | this.addChartReadyListener(); |
||
| 27 | } |
||
| 28 | }); |
||
| 29 |