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: 310px; height: 400px; max-width: 800px; 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: [{
name: 'Female',
color: 'rgba(223, 83, 83, .5)',
data: [{"name":"Chanel","x":-0.628791523588,"y":-0.284106687926},
{"name":"Louis Vuitton","x":-0.528706154977,"y":-0.0740270687865}
]
}, {
name: 'Male',
color: 'rgba(119, 152, 191, .5)',
data: [{"name":"luxurious","x":-0.610712111188,"y":-0.105495471716}]
}]
});