Search in sources :

Example 1 with Chart

use of br.com.digilabs.jqplot.Chart 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))));
        }
    }
}
Also used : PieChart(br.com.digilabs.jqplot.chart.PieChart) JavaScriptResourceReference(org.apache.wicket.request.resource.JavaScriptResourceReference) BarChart(br.com.digilabs.jqplot.chart.BarChart) PieChart(br.com.digilabs.jqplot.chart.PieChart) BarChart(br.com.digilabs.jqplot.chart.BarChart) Chart(br.com.digilabs.jqplot.Chart) Highlighter(br.com.digilabs.jqplot.elements.Highlighter)

Aggregations

Chart (br.com.digilabs.jqplot.Chart)1 BarChart (br.com.digilabs.jqplot.chart.BarChart)1 PieChart (br.com.digilabs.jqplot.chart.PieChart)1 Highlighter (br.com.digilabs.jqplot.elements.Highlighter)1 JavaScriptResourceReference (org.apache.wicket.request.resource.JavaScriptResourceReference)1