0

我正在使用 xpages,我需要在图表上显示数据点。我需要能够选择一个我需要绘制的文档(我尝试通过在视图中存储数据点来做到这一点)。我尝试使用 javascript 来定义我的绘图,但我无法让它绘制带有数据的文件/文档。除非我对所有数据点进行硬编码,否则它不起作用。有什么我想念的吗?有什么建议么?

4

1 回答 1

1

Iona, depending on your plot library (I like d3js), you will find JavaScript methods that allow you to retrieve those values using an Ajax call to an URL. That is the first step you need to sort out (with a static JSON file on your Domino).

Once you have that working, then you replace the static JSON file with the Ajax/Json control from the extension library that delivers values based on a script you write. There you can read a view, get values from a document or whatever fits your needs.

于 2013-03-19T15:23:44.650 回答