use of br.com.digilabs.jqplot.chart.PieChart in project openmeetings by apache.
the class PollResultsDialog method renderHead.
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(JavaScriptHeaderItem.forReference(JqPlotJavascriptResourceReference.get()));
response.render(CssHeaderItem.forReference(JqPlotCssResourceReference.get()));
Chart<?> c1 = new PieChart<>(null);
c1.getChartConfiguration().setHighlighter(new Highlighter());
for (Chart<?> chart : new Chart<?>[] { c1, new BarChart<Integer>(null) }) {
for (String resource : JqPlotUtils.retriveJavaScriptResources(chart)) {
response.render(JavaScriptHeaderItem.forReference(new JavaScriptResourceReference(JqPlotBehavior.class, removeMinified(resource))));
}
}
}
Aggregations