How do I create a stacked JqPlotBar chart in Tapestry? This is what I have tried.
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;
The result I get is a bar chart with one color until 60, with points label at 50 and 60. There is also no legend.
Any help would be much appreciated. Thanks.