Hi, 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. |
--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
@Component
(parameters = {"dataItems=testData", "graphTitle=literal:XYBarChart","params=options"})
private JqPlotBar chart4;
public JSONObject getOptions()
{
JSONObject ret = new JSONObject();
JSONObject options =new JSONObject();
options.put("stackSeries", new JSONLiteral("true"));
options.put("legend",new JSONLiteral("{show: true,location: 's'}"));
ret.put("options", options);
return ret;
}
However, it is still not working. I am still not getting a stacked bar chart. And there is still no legend. How to I get the legend? And also a stacked bar chart?
Any help would be much appreciated Thanks.
--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
legend: { show: false, location: 'ne', // compass direction, nw, n, ne, e, se, s, sw, w. xoffset: 12, // pixel offset of the legend box from the x (or x2) axis. yoffset: 12, // pixel offset of the legend box from the y (or y2) axis. },
--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,I would like the third graph. Thanks.
--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<td><div t:id="chart4" /></td>
--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.