如何使用HighCharts创建这样的图表?
答案 0 :(得分:1)
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
xAxis: {
categories: ['Value', 'Blend', 'Growth'],
title: {text: 'Valuation', enabled: true},
min: 0, // run this 0,1,2 to match our categories
max: 2,
gridLineWidth: 1
},
yAxis: {
categories: ['Small', 'Medium', 'Large'],
startOnTick: false,
endOnTick: false,
title: {text: 'Market Cap', enabled: true},
min: 0,
max: 2
},
series: [{
name: 'US Dow etc',
data: [[1,2]],
type: 'scatter'
}]
});
产地: