关于 $('#container').highcharts(options);
The .highcharts function is actually a part of a jQuery plugin used to create
the Highcharts.Chart objects. It uses jQuery's element selector (for example,
$('#container')) to find the element we want to render the chart to and renders the
chart inside that element.
在highcharts.src.js 文件中有如下片段:
/**
* Register Highcharts as a plugin in the respective framework
*/
$.fn.highcharts = function () {
var constr = 'Chart', // default constructor
args = arguments,
options,
ret,
chart;
if (this[0]) {
.....
本文介绍如何利用Highcharts和jQuery插件在网页中创建图表。通过使用Highcharts.Chart对象,结合jQuery的选择器(例如$('#container')),可以将图表渲染到指定的HTML元素中。
891

被折叠的 条评论
为什么被折叠?



