Highcharts Demo
author(s):
Jon Arild Nygård
by Torstein Hønsi
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/venn.js"></script>
<script src="https://code.highcharts.com/modules/pattern-fill.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container"></div>
CSS
#container {
min-width: 320px;
max-width: 600px;
height: 400px;
margin: 0 auto;
}
JavaScript
Highcharts.chart('container', {
series: [{
type: 'venn',
name: 'Venn with pattern fill',
data: [{
sets: ['Good'],
value: 2
}, {
sets: ['Fast'],
value: 2
}, {
sets: ['Good', 'Fast'],
value: 1,
name: 'More expensive',
color: {
pattern: {
path: {
d: 'M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11',
strokeWidth: 3
},
width: 10,
height: 10,
opacity: 1,
color: Highcharts.getOptions().colors[0]
}
}
}]
}],
title: {
text: 'The Unattainable Triangle'
}
});