问题描述
我正在使用Highcharts并显示多个图形。但是我看到使用getClockProvider()
来Bullet Graph
的另一种选择。我不知道如何设置Highcharts.setOptions
以及现有代码。
在TS文件中-
Highcharts.setOptions
并且在HTML文件中很简单
import { chart } from 'highcharts';
import { Chart,ChartModule } from 'angular-highcharts';
chart_accessor_review = new Chart({
chart: {
type: 'sankey',backgroundColor: '#ffffff'
},credits: {
enabled: false
},title: {
text: null
},accessibility: {
point: {
valueDescriptionFormat: '{index}. {point.from} to {point.to},{point.weight}.'
}
},series: [{
keys: ['from','to','weight'],data: [
['Algorithm','34220',0],['Algorithm','34223',21],'34224',15],'34233',10],'34245',7],'34274','34334',8],'35319',['All',1209],49],1990],784],1689],455],1439],1890]
],type: undefined,name: 'Accessor Info',nodeWidth: 250
}]
});
我想实现这样的目标-https://jsfiddle.net/BlackLabel/p2zwf6e8/,但是在示例中,他们使用了<div [chart]="chart_accessor_review "></div>
,我无法与Highcharts.setOptions
一起使用
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)