Highcharts Demo
author(s):
Torstein Hønsi
by ninachroscicka
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 410px; height: 400px; max-width: 900px; margin: 0 auto"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'scatter',
zoomType: 'xy'
},
title: {
text: ''
},
xAxis: {
title: {
enabled: true,
text: 'Dimension 1'
},
startOnTick: true,
endOnTick: true,
showLastLabel: true,
lineColor:'transparent',
tickLength:0
},
yAxis: {
gridLineColor:'transparent',
title: {
text: 'Dimension 2'
}
},
legend:{enabled:false},
plotOptions: {
scatter: {
dataLabels: {
format: "{point.name}",
enabled: true
},
enableMouseTracking: false
},
series: {
marker: {
enabled: true
/*symbol: 'url(https://www.highcharts.com/samples/graphics/sun.png)'*/
}
}
},
series: [{
name: ' ',
color: '#fff',
data:
[{'name': 'miejsce', 'x': 0.3050745573603047, 'y': -0.6605501402242316}, {'name': 'serial', 'x': -0.7350656162301011, 'y': -0.3491037376600281}, {'name': 'tvp', 'x': -0.41316635435517063, 'y': -0.9206711905801005}, {'name': 'treść', 'x': 0.5055790683451957, 'y': -0.7314607342164081}, {'name': 'nowy', 'x': -0.1361512187745811, 'y': -0.11159032788134866}, {'name': 'dom', 'x': 0.2661346982982033, 'y': 0.40941475172345004}, {'name': 'kod', 'x': -0.5287254599124874, 'y': -1.102920776738187}, {'name': 'roll', 'x': -0.6075558625793399, 'y': 1.5245463492152564}, {'name': 'rock', 'x': -0.6075558625793399, 'y': 1.5245463492152564}, {'name': 'zima', 'x': 0.2208072355864685, 'y': 0.8467777693050587}, {'name': 'restauracja', 'x': 2.6566798450843594, 'y': -1.0472086531259608}, {'name': 'strona', 'x': 0.019553030161033543, 'y': -0.8966364050709419}, {'name': 'wszyscy', 'x': 1.2488800537570164, 'y': 0.40211175158687196}, {'name': 'rok', 'x': -0.16826518426186846, 'y': 0.6494624280228016}, {'name': 'piękny', 'x': -0.20428598777564336,...