工具提示不会出现在高品质的高图上吗?

时间:2015-03-05 19:34:23

标签: javascript jquery highcharts

我一直试图解决这个问题一段时间但没有任何成功。我试图渲染一个高库。

javascript for graph rendering: -

 chartwa= new Highcharts.StockChart({
                        chart: chart,
                        title: title,
                        xAxis: xAxis,
                        series: series,
                        legend : legend,
                        plotOptions : plotoptions,
                        tooltip : {shared: true},
                        datagrouping : {enabled : true}
                    });

我传递给javascript的示例数据: -

    series : [{'type': 'line', 'data': [[1425445067000, -165.0], [1425445077000, 42.0], [1425445087000, 152.0], [1425445098000, 26.0], [1425445108000, -117.0]], 'tooltip': {'valueDecimals': 2}}]
    title : {'text': 'No Title'}
    xAxis :
    chart : {'zoomType': 'x', 'renderTo': 'graph_103'}
    legend : {'labelFormat': '<span style="color:{color}">{name}</span> - <b> x : ({point.x:.2f}) , </b> y : ({point.y:.2f}) <br/>', 'layout': 'vertical', 'enabled': 'true', 'maxHeight': '100'}
    plotoptions : {'area': {'marker': {'lineWidth': 1, 'lineColor': '#666666'}, 'lineWidth': 1, 'percent': 'normal', 'lineColor': '#666666'}}
tooltip : {shared: true}
datagrouping : {enabled : true}

我不确定为什么工具提示不会显示。

我正在从

加载js
<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/stock/highstock.src.js"></script>
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
<script src="https://rawgithub.com/highslide-software/value-in-legend/master/value-in-legend.js"></script>
<script src="https://rawgithub.com/RolandBanguiran/highstock-zoom-out-selection/master/zoomout-selection.js"></script>

我在调试器控制台中看不到任何错误。

0 个答案:

没有答案