最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - JSFiddle API examples are broken - Stack Overflow

programmeradmin2浏览0评论

From the API documentation in: .alignTicks

Clicking in align ticks true example: .7.2/highslide-software/highcharts/tree/master/samples/highcharts/chart/alignticks-true/

Doesn't render the chart. The following error appears in the JS console:

Uncaught TypeError: Object [object Object] has no method 'highcharts' 

From the API documentation in: http://api.highcharts./highcharts#chart.alignTicks

Clicking in align ticks true example: http://jsfiddle/gh/get/jquery/1.7.2/highslide-software/highcharts./tree/master/samples/highcharts/chart/alignticks-true/

Doesn't render the chart. The following error appears in the JS console:

Uncaught TypeError: Object [object Object] has no method 'highcharts' 
Share Improve this question edited Mar 6, 2013 at 13:20 JBntis 7916 bronze badges asked Mar 6, 2013 at 13:17 Ricardo FerreiraRicardo Ferreira 171 silver badge2 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 3

problem is .highchart. Use

var chart = new Highcharts.Chart({
    chart: {
        //alignTicks: false,
        type: 'line',
        renderTo: 'container'
    },
    ...
}

problem is HighCharts js file updates. In highcharts offical site demos are not working , too.

DEMO

The .highcharts mechanism was introduced in Highcharts 3.0 via a JQuery plugin, as documented in the Highcharts 3.0 release announcement. Presumably the JSFiddle pages in question that weren't working were including an older version of Highcharts at the time, as I was until I figured why my own charts weren't working!

I updated their jsfiddle chart.

It works now. The problem was with highcharts which didn't really existed as a method of the jQuery object.

发布评论

评论列表(0)

  1. 暂无评论