<script src='https://code.highcharts.com/maps/highmaps.js'></script>
<script src='https://code.highcharts.com/modules/exporting.js'></script>
<script src='https://code.highcharts.com/modules/offline-exporting.js'></script>
<script src='https://code.highcharts.com/mapdata/custom/europe.js'></script>
These scripts were added in the page head.
xxxxxxxxxx
%%html
<figure class='highcharts-figure'>
<div id='container4'
style='width:500px; height:600px; font-family:Orbitron;'>
the javascript cell is launching here...</div></figure>
xxxxxxxxxx
%%javascript
var s1='Variants for Highlighting:<br>AL,AD,AM,AT,BY,BE,',
s2='BA,BG,CH,CY,CZ,DE,DK,EE,ES,FO,FI,FR,GB,GE,GI,GR,',
s3='<br>HU,HR,IE,IS,IT,LT,LU,LV,MC,MK,MT,NO,NL,PL,PT,',
s4='RO,RU,SE,SI,SK,SM,TR,UA,VA';
var s=s1.concat(s2).concat(s3).concat(s4);
Highcharts.mapChart('container4',{
chart:{map:'custom/europe',borderWidth:1,
backgroundColor:'slategray'},
title:{style:{'color':'#fff','fontSize':'18px'},
text:'Explore Highcharts Parameters with Maps'},
subtitle:{style:{'color':'#fff','fontSize':'14px'},
text:s},legend:{enabled:false},
series:[{name:'Country',color:'#1177aa',
borderColor:'steelblue',borderWidth:1.5,
data:[['fr',1],['gb',1],['es',1],
['de',1],['it',1],['pl',1],['by',1]],
dataLabels:{enabled:true,color:'#fff',
formatter:function(){
if (this.point.value){return this.point.name;}}},
tooltip:{headerFormat:'',pointFormat:'{point.name}'}}]});
No comments:
Post a Comment