Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/81.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Raphael JavaScript X未定义_Javascript_Jquery_Raphael_Graphael - Fatal编程技术网

Raphael JavaScript X未定义

Raphael JavaScript X未定义,javascript,jquery,raphael,graphael,Javascript,Jquery,Raphael,Graphael,在Web等方面,我是新手。我正在使用Raphael.js库创建折线图,但我不断遇到以下错误: 无法获取未定义或空引用的属性“x” 它突出显示了Raphael.js文件中的这段文本: d=a.x 我错过了一些非常简单的东西吗 提前谢谢 如果您使用Mapael.js,请检查您是否拥有以下代码: <div class="mapClass"> <div class="map"> <span>Alt

在Web等方面,我是新手。我正在使用Raphael.js库创建折线图,但我不断遇到以下错误:

无法获取未定义或空引用的属性“x”

它突出显示了Raphael.js文件中的这段文本:

d=a.x

我错过了一些非常简单的东西吗


提前谢谢

如果您使用Mapael.js,请检查您是否拥有以下代码:

        <div class="mapClass">
            <div class="map">
                <span>Alternative content for the map</span>
            </div>
            <div class="areaLegend">
                <span>Alternative content for the legend</span>
            </div>
            <div class="plotLegend">
                <span>Alternative content for the legend</span>
            </div>
        </div>

地图的替代内容
图例的替代内容
图例的替代内容

因为.areaLegend和.plotLegend是强制性的

很明显,
a
未定义或为空。你能提供多一点代码吗?