jqplot meter gauge issue: c.jqplot is undefined?

删除回忆录丶 提交于 2019-12-20 04:10:34

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/14918237/jqplot-meter-gauge-issue-c-jqplot-is-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!