jqplot meter gauge问题:c.jqplot未定义? [英] jqplot meter gauge issue: c.jqplot is undefined?

查看:81
本文介绍了jqplot meter gauge问题:c.jqplot未定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁经历过这个?我是新手,所以我不确定这里到底发生了什么。但我试图使用jqplot的每个文档的仪表,它似乎没有工作。我可以很好地创建条形图,折线图等。



包括必要的脚本链接(以及其他所需的):

 < script type =text / javascriptsrc =../ plugins / jqplot.meterGaugeRenderer.min.js>< / script> 

标记

 < div id ='chart6'>< / div> 

js

  $(document).ready(function(){

plot6 = $ .jqplot('chart6',[[18]],{
title:'Network Speed' ,
seriesDefaults:{
renderer:$ .jqplot.MeterGaugeRenderer,
rendererOptions:{
label:'MB / s'
}
}
});
});

firebug说:



TypeError:c .jqplot未定义 - 在meterGaugeRender js文件中。



任何帮助都会一如既往地受到高度赞赏。

解决方案

看起来你没有包含基本的jqPlot库,只需加上仪表规格。


anyone experienced this? I am new to this so I am not sure exactly what is going on here. But I am trying to use jqplot's meter gauge per documentation and it doesn't seem to be working. I can create bar, line, etc graphs just fine.

include the necessary script link (as well as the others needed):

<script type="text/javascript" src="../plugins/jqplot.meterGaugeRenderer.min.js"></script>

markup

<div id='chart6'></div>

js

$(document).ready(function () {

    plot6 = $.jqplot('chart6', [[18]], {
        title: 'Network Speed',
        seriesDefaults: {
            renderer: $.jqplot.MeterGaugeRenderer,
            rendererOptions: {
                label: 'MB/s'
            }
        }
    });
});

firebug says:

TypeError: c.jqplot is undefined - inside the meterGaugeRender js file.

any help would be greatly appreciate as always.

解决方案

It looks like you did not include the basic jqPlot library, just the meter gauge add on.

这篇关于jqplot meter gauge问题:c.jqplot未定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆