0

我正在寻找可以像这样在光标点显示值的 HTML5 图表

http://www.tradeviewforex.com/forex-blog/tip-14-how-to-use-the-crosshair-on-metatrader-4

我发现 StockChartX 可以做到这一点 http://developer.modulusfe.com/stockchartx_html5/

(点击绘图 -> 注释)

但我可以努力这个价格:P

感谢您的回答!

附言。对不起,我的英语不好。

4

2 回答 2

1

可以使用 TeeChart HTML5 中的注释工具完成类似的操作。请参阅此处的示例

于 2013-01-02T08:28:15.130 回答
0

Also, you can format a tool tip, if that is the need.

tip = new Tee.ToolTip(Chart1);
Chart1.tools.add(tip);

tip.format.font.style = "11px Verdana";
tip.render = "canvas";
tip.onshow = function (tool, series, index) {
    scaling = 2;
    poindex = index;
}
tip.onhide = function () {
    scaling = 0;
    poindex = -1;
}
tip.ongettext = function (tool, text) {

    var txt = tool.currentSeries.title + ":\n" + "Value: " + text + tool.currentSeries.units + "\n" + jsonDataArray[0].evDataTime[tool.currentIndex] + " (ms)";
    model.MouseOverY(text + tool.currentSeries.units);
    model.MouseOverX(jsonDataArray[0].evDataTime[tool.currentIndex] + " (ms)");
    model.SelectedSeries(tool.currentSeries.title);
    return txt;
}
于 2013-08-28T17:02:21.920 回答