简体   繁体   English

不显示带有Highcharts-ng的图表

[英]Not appear chart with Highcharts-ng

I tried to use the plugin and angular.js Highcharts-ng for charting. 我尝试使用插件和angular.js Highcharts-ng进行图表绘制。

Here is my code: http://jsfiddle.net/L78L4cuh/ 这是我的代码: http : //jsfiddle.net/L78L4cuh/

But as you can see does not have any results. 但是如您所见,没有任何结果。

I just do not understand the workings of it all. 我只是不了解这一切的运作。 I used beyond the resources provided by the developer that produces the code, but I do not know how to use it 我使用了超出开发人员提供代码的资源,但是我不知道如何使用它

Here is the following code: 这是下面的代码:

{"options":{"chart":{"type":"pie"},"plotOptions":{"series":{"stacking":""}}},"series":[{"data":[6,19,15,14,3,13,18,18,4,6],"id":"series-4","type":"area","color":"#0084CC","lineWidth":"","dashStyle":"Solid","name":"Twitter"},{"data":[16,16,16,13,11,3,6,2,6,19],"id":"series-5","name":"Sell","type":"area","color":"#B0E334","dashStyle":"Solid"}],"title":{"text":"Social Commerce Resul"},"credits":{"enabled":false},"loading":false,"size":{},"subtitle":{"text":"Awesome data about commerce"}}

How do I make it appear? 如何使其显示?

Thanks in advance 提前致谢

It looks like you need to add a few things to your code. 看来您需要在代码中添加一些内容。 I updated your fiddle 我更新了你的小提琴

http://jsfiddle.net/L78L4cuh/1/ http://jsfiddle.net/L78L4cuh/1/

wrapped 包裹

<highchart id="chart1" config="highchartsNG"></highchart>

with proper angular calls added jquery in dependencies changed your js orders and added hightchart.js 适当的角度调用在依赖项中添加了jquery更改了您的js顺序并添加了hightchart.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM