问题标签 [gwt-visualization]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
gwt - Is there a "correct" way to add/remove a PieChart?
I have an MVP GWT 2.5.1 app using version 1.1.1 of gwt-visualization. My view has two Button
s and a VerticalPanel
(accessed by the presenter as display.getPanel()
). One button adds a PieChart
to the VerticalPanel
, the the other removes it. The presenter holds the PieChart
reference as a Widget
so that it knows when it has been added/removed. It is initialized to null
.
I checked chrome's dev tools to ensure that the add/remove code wasn't creating a DOM leak. But after the PieChart
was removed, its elements were left behind in a detached DOM tree, all color coded red. When I tried the same add/remove code with a Label
instead of a PieChart
, no detached DOM tree remained after removal.
My questions is: am I doing something wrong when either adding or removing the PieChart
? Perhaps gwt-visualization has some other method of handling this that I am not aware of, but my google-fu is unable to produce an answer.
The presenter add/remove code is below:
gwt - 带有 UIbinder 的 GWT 可视化 API
我已经使用http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted试用了可视化 api
但是,我想用新的可视化 API 创建图表,比如https://developers.google.com/chart/interactive/docs/gallery/piechart
是否可以使用 GWTP Uibinders 来实现这一点,或者我是否需要使用任何其他方式来实现这一点。
提前致谢,班纳特。
gwt - gwt 可视化:时间线
我想实现 gwt 可视化时间线图。
但是,它在 gwt 中不可用,是否可以直接在 gwt 应用程序中使用可视化 api (javascript)。
如果是,请给我一些指导。
有没有其他可用的选项。
我试过http://almende.github.io/chap-links-library/timeline.html和它的好。
但是,我想了解 gwt 中的可视化 api。
gwt - 在 ColumnChart 中显示列内的值(不仅在悬停时)
我有一个 GWT 应用程序,它显示带有 gwt 可视化的多个图表。
我想在我ColumnChart
里面列的值。
在官方文档中,我们可以看到DataView
我们可以在列内添加值:
https ://developers.google.com/chart/interactive/docs/gallery/columnchart
(请在“这比应有的复杂一点,因为我们创建一个DataView
为每一列指定注释”之前查看我想要的图形类型。)
在这里,我的实际代码仅在我们将列悬停时才显示该值:
你知道我如何在列内显示列的值吗?
谢谢!
gwt - Issue in customizing default tooltip text of PieChart using gwt-visualization 1.1.2 API
I am having difficulty in customizing default tool tip text of PieChart.Here are the details of of API: gwt-visualization 1.1.2, Gwt2.0 and Gxt 2.1.1. Here is the link what i have followed , but there is no luck.
Code:
JSNI:
DataTable: