Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.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
Html TeeChart能否在光标点绘制值标签?_Html_Teechart - Fatal编程技术网

Html TeeChart能否在光标点绘制值标签?

Html TeeChart能否在光标点绘制值标签?,html,teechart,Html,Teechart,我正在寻找HTML5图表,它可以像这样在光标点显示值 我发现StockChartX可以做到这一点 (单击绘制->注释) 但我可以努力做到这个价格:p 谢谢你的回答 另外,很抱歉我的英语不好。类似的事情可以通过TeeChart HTML5中的注释工具来完成。参见示例,如果需要,也可以格式化工具提示 tip = new Tee.ToolTip(Chart1); Chart1.tools.add(tip); tip.format.font.style = "11px Verdana"; tip.

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

我发现StockChartX可以做到这一点

(单击绘制->注释)

但我可以努力做到这个价格:p

谢谢你的回答


另外,很抱歉我的英语不好。

类似的事情可以通过TeeChart HTML5中的注释工具来完成。参见示例

,如果需要,也可以格式化工具提示

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;
}

oops忽略了我的“模型”。只是文本部分。其余的是为了其他目的。我只是在没有思考的情况下粘贴了代码