Project

General

Profile

« Previous | Next » 

Revision 61286

Added by Antonis Lempesis 4 months ago

merged gradient and then querie_names branches

View differences:

europe-map-overview.component.ts
11 11

  
12 12
import * as echarts from 'echarts';
13 13
import {
14
  datasetColor, datasetBackgroundColor,
14
  datasetColor,
15 15
  datasetTooltipColor, journalsColor, journalsTooltipColor, journalsBackgroundColor, policiesColor, policiesTooltipColor,
16
  publicationColor, publicationBackgroundColor,
16
  publicationColor,
17 17
  publicationTooltipColor,
18
  repositoriesColor, repositoriesBackgroundColor,
18
  repositoriesColor,
19 19
  repositoriesTooltipColor,
20
  gradientStartColor
20 21
} from '../../chart-palettes';
21 22

  
22 23
declare var require: any;
......
30 31

  
31 32
export class EuropeMapOverviewComponent implements OnInit {
32 33

  
34
  private gradientStartColor = gradientStartColor;
35

  
33 36
  countries: CountryOverview[];
34 37

  
35 38
  @Output() emitSelectedCountry: EventEmitter<any> = new EventEmitter();
......
154 157
        // center: [15.2551, 54.5260],
155 158
        center: [14, 51],
156 159
        // zoom: 4.7,
157
        // zoom: 4.3,
158
        zoom: 6,
160
        zoom: 4.3,
161
        // zoom: 6,
159 162
        // roam: true,
160 163
        label: {
161 164
          emphasis: {
......
243 246
                  //   x2: 0,
244 247
                  //   y2: 1,
245 248
                  //   colorStops: [{
246
                  //     offset: 0, color: '#A1AAB8' // color at 0% position
249
                  //     offset: 0, color: gradientStartColor // color at 0% position
247 250
                  //   }, {
248 251
                  //     offset: 1, color: seriesColor // color at 100% position
249 252
                  //   }],

Also available in: Unified diff