0

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

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

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

d=ax

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

提前致谢 !

4

1 回答 1

0

如果您使用 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 是强制性的

于 2014-10-03T14:57:00.363 回答