FusionCharts实时行锚点
我想将AnchorbgColor属性用于实时线图。 实时线图。
function updateData() {
var t = new Date(),
date =
t.getHours() + ":" + t.getMinutes() + ":" + t.getSeconds(),
val = Math.floor(Math.random() * (7800 - 7200 + 1)) + 7200,
strData = "&label=" + date + "&value=" + val;
// Feed it to chart.
chartRef.feedData(strData);
}
您是否建议您建议如何更改Anchorbgcolor for for Anchorbgcolor这个图表?
I want to use anchorBgColor attribute for Real-time Line chart.
Real-time Line chart.
function updateData() {
var t = new Date(),
date =
t.getHours() + ":" + t.getMinutes() + ":" + t.getSeconds(),
val = Math.floor(Math.random() * (7800 - 7200 + 1)) + 7200,
strData = "&label=" + date + "&value=" + val;
// Feed it to chart.
chartRef.feedData(strData);
}
Could you recommend how to change anchorBgColor for this chart?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您想拥有所有要点相同的颜色,那么您所要做的就是将anchorbgcolor属性包含在图表对象中,
如果要在添加颜色时要更改颜色,则可以操纵图表数据对象并使用
setjSondataa
而不是使用feeddata
方法。示例可以看到在这里
If you are wanting to have all the points the same color all you have to do is include the anchorBgColor property in the chart object
If you want points to change colors as you add them you have manipulate the chart data object and use
setJSONData
rather than using thefeedData
method.Example can be seen here
您可以使用 anchorbgcolor 属性来更改锚固背景颜色
,以了解有关锚点属性的更多信息,请参阅 this
实时锚点demofiddle 在这里
You can use anchorBgColor attributes to change anchor background color
To know more about Anchor properties refer this
Real-time anchor demoFiddle here