Javascript 高图角形漏斗
有人用过Highchart漏斗做角度测量吗 我使用highchart ng(),但漏斗不起作用 我使用ng highchart的代码是:Javascript 高图角形漏斗,javascript,angularjs,charts,highcharts,Javascript,Angularjs,Charts,Highcharts,有人用过Highchart漏斗做角度测量吗 我使用highchart ng(),但漏斗不起作用 我使用ng highchart的代码是: $scope.chartSalesFunnel = { options: { chart: { type: 'funnel', marginRight: 100 }, plotOptions: { series: {
$scope.chartSalesFunnel = {
options: {
chart: {
type: 'funnel',
marginRight: 100
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
format: '<b>{point.name}</b> ({point.y:,.0f})',
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black',
softConnector: true
},
neckWidth: '30%',
neckHeight: '25%'
//-- Other available options
// height: pixels or percent
// width: pixels or percent
}
},
},
title: {
text: '',
},
legend: {
enabled: false
},
series: [{
name: 'Unique users',
data: [
['Website visits', 15654],
['Downloads', 4064],
['Requested price list', 1987],
['Invoice sent', 976],
['Finalized', 846]
]
}]
};
$scope.ChartSales漏斗={
选项:{
图表:{
类型:'漏斗',
marginRight:100
},
打印选项:{
系列:{
数据标签:{
启用:对,
格式:“{point.name}({point.y:,.0f})”,
颜色:(Highcharts.theme&&Highcharts.theme.ContractTextColor)| |“黑色”,
软连接器:正确
},
领口宽度:“30%”,
领口高度:“25%”
//--其他可用选项
//高度:像素或百分比
//宽度:像素或百分比
}
},
},
标题:{
文本:“”,
},
图例:{
已启用:false
},
系列:[{
名称:“唯一用户”,
数据:[
[“网站访问”,15654],
['Downloads',4064],
[“所需价格表”,1987年],
['已发送发票',976],
[‘定稿’,846]
]
}]
};
漏斗图类型需要额外的漏斗模块,如前所述
您可以这样包含它:
<script src="https://code.highcharts.com/modules/funnel.js"></script>
请参阅包含此模块的代码示例