Package com.googlecode.charts4j

Examples of com.googlecode.charts4j.VennDiagram


    }

    @Test
    public void example1() {
        // EXAMPLE CODE START
        final VennDiagram chart = GCharts.newVennDiagram(100, 80, 60, 30, 30, 30, 10);
        chart.setTitle("Mr. Venn", WHITE, 16);
        chart.setSize(600, 450);
        chart.setCircleLegends("Set A", "Set B", "Set C");
        chart.setCircleColors(YELLOW, RED, BLUE);
        chart.setBackgroundFill(Fills.newSolidFill(BLACK));
        String url = chart.toURLString();
        // EXAMPLE CODE END. Use this url string in your web or
        // Internet application.
        Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).info(url);
        String expectedString = "http://chart.apis.google.com/chart?cht=v&chs=600x450&chts=FFFFFF,16&chf=bg,s,000000&chco=FFFF00,FF0000,0000FF&chdl=Set+A|Set+B|Set+C&chd=e:..zMmZTNTNTNGa&chtt=Mr.+Venn";
        assertEquals("Junit error", normalize(expectedString), normalize(url));
View Full Code Here

TOP

Related Classes of com.googlecode.charts4j.VennDiagram

Copyright © 2018 www.massapicom. 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.