Examples of JqPlotChart


Examples of org.wicketstuff.jqplot.JqPlotChart

public class HomePage extends WebPage {

    private static final long serialVersionUID = 1L;

    public HomePage(final PageParameters parameters) {
        add(new JqPlotChart("chart1", lineChart1()));
        add(new JqPlotChart("chart2", lineChart2()));
        add(new JqPlotChart("barChart1", barChart1()));
        add(new JqPlotChart("barChart2", barChart2()));
        add(new JqPlotChart("pieChart1", pieChart1()));
        add(new JqPlotChart("pieChart2", pieChart2()));
        add(new JqPlotChart("lineSeries1", lineSeries()));
        add(new JqPlotChart("areaChart1", areaChart1()));
        add(new JqPlotChart("areaChart2", areaChart2()));

        addChartWithImage();

        addTestLineChartWithTicks();
View Full Code Here

Examples of org.wicketstuff.jqplot.JqPlotChart

        legend.setRendererOptions(new LegendRenderer().setNumberRows(1));
        legend.setLocation(Location.s);
        legend.setMarginTop("15px");
        pieChart.setLegend(legend);

        final JqPlotChart jqPlotChart = new JqPlotChart("areaChartWithImage", pieChart);
        final WebMarkupContainer jqPlotImage = new WebMarkupContainer("image");
        jqPlotImage.setOutputMarkupId(true);

        AjaxLink<Void> ajaxLink = new AjaxLink<Void>("plotImage") {
            private static final long serialVersionUID = 1L;

            @Override
            public void onClick(AjaxRequestTarget target) {
                StringBuilder jsBuilder = new StringBuilder();
                jsBuilder//.append("$(document).ready(function(){\r\n")
                        .append("var imgData = $('#").append(jqPlotChart.getMarkupId())
                        .append("').jqplotToImageStr({});\r\n")
                        .append("var imgElem = $('<img/>').attr('src',imgData);\r\n")
                        .append("$('#").append(jqPlotImage.getMarkupId())
                        .append("').append(imgElem);\r\n");
                target.appendJavaScript(jsBuilder);
View Full Code Here

Examples of org.wicketstuff.jqplot.JqPlotChart

                new MarkerOptions().size(7f).style("x")));
        lineChart.addSerie(new Serie().markerOptions(new MarkerOptions().style("circle")));
        lineChart.addSerie(new Serie().lineWidth(5).markerOptions(
                new MarkerOptions().style("filledSquare").size(10f)));

        add(new JqPlotChart("test", lineChart));

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.