如何使用TeeChart添加新系列?

huangapple go评论60阅读模式
英文:

How to add a new serie using teechart?

问题

这是我提取信号并在图表上显示的地方,问题是它们没有被打印出来。我已经阅读了teechar库的使用,但没有找到问题。你看看代码中是否有任何部分缺失?

grafica.addSerie("serieName", null);
grafica.setSerieVisible(index, true);
grafica.setAutoRange(false, index);
grafica.setColorSerie(COLOR.Red, index);
英文:

This is where I take the signals to show them on the graph, the problem is that they aren't printed. I have been reading the use of the teechar library and I find no problem. Do you see if any part of the code is missing?

            grafica.addSerie("serieName", null);
			grafica.setSerieVisible(index, true);
			grafica.setAutoRange(false, index);
			grafica.setColorSerie(COLOR.Red, index);

答案1

得分: 1

你需要做的是添加你的新系列数据:

grafica.addSerie(ARRAY_AXIS_X_GET_VALUE, ARRAY_AXIS_X_GET_VALUE, YOUR_SERIE_INDEX);

不要忘记迭代你的数据。

英文:

What you need to do is add your new serie data:

grafica.addSerie(ARRAY_AXIS_X_GET_VALUE, ARRAY_AXIS_X_GET_VALUE, YOUR_SERIE_INDEX);

Do not forget to iterate your data.

huangapple
  • 本文由 发表于 2020年9月17日 19:16:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/63936869.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定