在交互式柱形图上绘制线条
我一直在使用图表 API 来绘制陆地的横截面轮廓,使用的是图表示例的稍微修改版本 此处。
但是,我现在需要在两个端点之间绘制一条视线,以及两者之间的 Fresnel(1) 区域。这可以通过交互式图表 API 来完成吗?或者有更好的方法来完成这个任务吗?
另外,我想“选择”第一个和最后一个条目来显示它们的海拔,但是我的代码似乎没有执行任何操作:
Chart.setSelection([{row:0,column:null},{row:Results.length - 1, column:null}]);
I've been using the chart API to draw a cross sectional profile of a landmass, using a slightly modified version of the chart example shown here.
however, I now need to draw a line of sight between the two end points, as well as a Fresnel(1) zone between the two. can this be done through the interactive chart API? or is there a better way to get this done?
also, I would like to 'select' the first and last entries to display their elevation, however my code doesn't appear to do anything:
Chart.setSelection([{row:0,column:null},{row:Results.length - 1, column:null}]);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在发现可视化 API 的一些其他问题后,我放弃了,转而使用 Raphael 完成了整个工作,效果更好:D
编辑:不知道你无法在两天内回答自己的帖子:|有点烦人,因为我连续花了一周的时间试图摆弄出血图表 -.-
After finding some other problems with the visualization API, I just gave up and did the whole thing using Raphael instead, works way better :D
EDIT: didn't know you couldn't answer your own posts within two days :| kinda of annoying since I've spent like a week straight trying to fandangle the bleeding chart -.-