Smartgwt CHARTS

CHARTS.txt

Smartgwt CHARTS 

Como hacer graficos en smartclient
how to do chart with smartgwt client

        ChartData cd1 = new ChartData( "Sales by Month 2006", "font-size: 14px; font-family: Verdana; text-align: center;" );
        cd1.setBackgroundColour( "#ffffff" );

        XAxis xa = new XAxis();
        xa.setLabels( "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D" );
        xa.setMax( 12 );
        cd1.setXAxis( xa );

        YAxis ya = new YAxis();
        ya.setSteps( 16 );
        ya.setMax( 160 );
        cd1.setYAxis( ya );

        BarChart bchart1 = new BarChart( BarStyle.NORMAL );
        //bchart1.setTooltip( "$#val#" );
        //bchart1.addValues( 133, 123, 144, 122, 155, 123, 135, 153, 123, 122, 111, 100 );
        //cd1.addElements( bchart1 );
        //chart1.setSize( "100%", "100%" );
        widget_real_chart.setJsonData( cd1.toString() );
       
        HTML label1 = new HTML( "<u>Normal Bar Chart</u>" );
        label1.setWidth( "100%" );
        label1.setHorizontalAlignment( HasHorizontalAlignment.ALIGN_CENTER );
       
        addMember(widget_real_chart);  

Comments

Popular posts from this blog

smart gwt allow only numbers in textfield

how to access the DOM gwt smartclient

question confirm sc window smartgwt - ventana de confirmacion en smartgwt