html - Problem in Google Visualization Chart Api -
I am using GWT
If you click on my code, I see the button Hide This is clearly visible on the panflow panel panel but when I click on the show button it does not show my pitchchart
the last panel panel = rootpanel.get (); Final FlowPanel pieFlowPanel = New FlowPanel ();
Last Runnable onLoadCallback = New Runnable () {Public Zero Run () {piechart pie; // Create a pie chart visualization = New piechart (CreateTable, CreateOptions ()); Pie.addOnMouseOverHandler (createSelectHandler (Pie)); // pie.addSelectHandler (CreateSavedHandler (Pie)); PieFlowPanel.add (pie); Panel.add (pieFlowPanel); }}; Visualization Utility. LoadVisibility API (Oneled Callback, Piechart Package); Button Button = New Button ("Hide"); Button Button 2 = New Button ("Show"); Button.addClickHandler (New ClickHandler) {@Override Public Zero onClick (ClickEvent event) {pieFlowPanel.clear ();}}); button2.addClickHandler (New ClickHandler () {@Override public void onClick (ClickEvent event) {final Runnable onLoadCallback1 = new Runnable () {public void run () {Window.alert ( "Run"); piechart Pie, Pie = new Piechart (createTable (), createOptions ()); pie.addOnMouseOverHandler (createSelectHandler (pi)); pieFlowPanel.add (pie); panel.add (pieFlowPanel);}}; VisualizationUtils.loadVisualizationApi (onLoadCallback1, PieChart.PACKAGE);}} ); Panel.add (button); Panel.add (Button2); ">
I had this problem before all my applications that use a custom component based on the Visualization API working all of a sudden, even older versions and local deployment stop
do I change the line :.
VisualizationUtils.loadVisualizationApi (onload callback, Blabala. package);
with:
Vijhualaijheshnulti. Lodvijilaijheshn API (onload callback);
and it works even though the Defense has no information about it.
Comments
Post a Comment