如何在 AngularJS.i 中实施 Highchart 是在 angular 中实施 highchart 的问题
How to implement Highchart in AngularJS.i was trouble with implementation highchart in angular
如何在 AngularJS 中实现此代码?
它在 AngularJS 个文件中无法正常工作
http://jsfiddle.net/Kondaldurgam/qkr4dqe3/
如何在 AngularJS 中实现 Highchart?
Highcharts.chart('container', {
chart: {
type: 'bubble',
plotBorderWidth: 1,
zoomType: 'xy'
},
title: {
text: 'Highcharts bubbles with radial gradient fill'
},
xAxis: {
type:'',
gridLineWidth: 1
},
yAxis: {
startOnTick: false,
endOnTick: false
},
series: [{
data: [
[9, 81, 63],
[98, 5, 89],
[51, 50, 73],
[41, 22, 14],
[58, 24, 20],
[78, 37, 34],
[55, 56, 53],
[18, 45, 70],
[42, 44, 28],
[3, 52, 59],
[31, 18, 97],
[79, 91, 63],
[93, 23, 23],
[44, 83, 22]
],
marker: {
fillColor: {
radialGradient: { cx: 0.4, cy: 0.3, r: 0.7 },
stops: [
[0, 'rgba(255,255,255,0.5)'],
[1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0.5).get('rgba')]
]
}
}
}, ]
});
根据您在两个小提琴中提供的信息,xAxis
属性 中您似乎缺少 'category'
:
xAxis: {
type: "category", // <==== here
gridLineWidth: 1
}
这里是 working fiddle
如何在 AngularJS 中实现此代码?
它在 AngularJS 个文件中无法正常工作
http://jsfiddle.net/Kondaldurgam/qkr4dqe3/
如何在 AngularJS 中实现 Highchart?
Highcharts.chart('container', {
chart: {
type: 'bubble',
plotBorderWidth: 1,
zoomType: 'xy'
},
title: {
text: 'Highcharts bubbles with radial gradient fill'
},
xAxis: {
type:'',
gridLineWidth: 1
},
yAxis: {
startOnTick: false,
endOnTick: false
},
series: [{
data: [
[9, 81, 63],
[98, 5, 89],
[51, 50, 73],
[41, 22, 14],
[58, 24, 20],
[78, 37, 34],
[55, 56, 53],
[18, 45, 70],
[42, 44, 28],
[3, 52, 59],
[31, 18, 97],
[79, 91, 63],
[93, 23, 23],
[44, 83, 22]
],
marker: {
fillColor: {
radialGradient: { cx: 0.4, cy: 0.3, r: 0.7 },
stops: [
[0, 'rgba(255,255,255,0.5)'],
[1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0.5).get('rgba')]
]
}
}
}, ]
});
根据您在两个小提琴中提供的信息,xAxis
属性 中您似乎缺少 'category'
:
xAxis: {
type: "category", // <==== here
gridLineWidth: 1
}
这里是 working fiddle