Tapestry:如何创建堆叠的JqPlot条形图

时间:2013-07-23 06:44:11

标签: jqplot bar-chart tapestry

如何在Tapestry中创建堆叠的JqPlotBar图表?这就是我的尝试。

List<TextValueDataItem> list1 = CollectionFactory.newList();
List<List<TextValueDataItem>> dataList = CollectionFactory.newList();

list1.add(new TextValueDataItem("Test1", 50));
list1.add(new TextValueDataItem("Test1", 60));

dataList.add(list1);
return dataList;

我得到的结果是条形图,其中一种颜色直到60,点标签为50和60.也没有图例。
任何帮助将非常感激。感谢。

1 个答案:

答案 0 :(得分:0)

现在有一个https://github.com/got5/tapestry5-jqPlot堆积条形图的示例。
尝试使用maven mvn包打包项目时遇到问题。它正在尝试搜索文件夹org \ got5 \ tapestry5 \ jquery \ jqplot \ jquery \ jqplot_core \ jquery \ jqplot \ v1_0_8下的文件,但tapestry-jqplot jar文件中的文件夹是大写V1_0_8。您需要将其更改为小写字母v1_0_8才能使jar文件生效。

相关问题