Project

General

Profile

« Previous | Next » 

Revision 62830

View differences:

treemap-highcharts.component.ts
4 4
import More from 'highcharts/highcharts-more';
5 5
import Tree from 'highcharts/modules/treemap';
6 6
import Heatmap from 'highcharts/modules/heatmap';
7
import Exporting from 'highcharts/modules/exporting';
8
import ExportData from 'highcharts/modules/export-data';
7 9
import { TreemapHighchartsData } from '../../domain/treemap-highcharts-data';
8 10

  
9 11
More(Highcharts);
10 12
Tree(Highcharts);
11 13
Heatmap(Highcharts);
14
Exporting(Highcharts);
15
ExportData(Highcharts);
12 16

  
13 17
@Component({
14 18
  selector: 'app-treemap-highchart',
......
18 22
export class TreemapHighchartsComponent implements OnInit {
19 23

  
20 24
  @Input() chartTitle: string;
25
  @Input() chartSubtitle: string = '';
21 26
  @Input() chartData: TreemapHighchartsData[];
22 27
  @Input() color: string;
23 28

  
......
33 38

  
34 39
    this.treeMapChartOptions = {
35 40
      chart: {
36
        type: 'treemap'
41
        type: 'treemap',
42
        height: this.height
37 43
      },
38 44
      title: {
39 45
        text: this.chartTitle,
......
44 50
        //   fontSize: '18px'
45 51
        // }
46 52
      },
53
      subtitle: {
54
        text: this.chartSubtitle,
55
        align: 'left',
56
        margin: 25,
57
        // style: {
58
        //   color: '#7A7A7A',
59
        //   fontSize: '18px'
60
        // }
61
      },
47 62
      tooltip: {
48 63
        enabled: true
49 64
      },

Also available in: Unified diff