Gwt Googlecharts 简明教程
GWT Google Charts - Overview
Google Charts 是一个基于纯 JavaScript 的图表库,旨在通过增加交互式制图功能来增强 Web 应用程序。它支持各种图表。图表在标准浏览器(如 Chrome、Firefox、Safari、Internet Explorer (IE))中使用 SVG 绘制。在旧版 IE 6 中,使用 VML 绘制图形。
Google Charts is a pure JavaScript based charting library meant to enhance web applications by adding interactive charting capability. It supports a wide range of charts. Charts are drawn using SVG in standard browsers like Chrome, Firefox, Safari, Internet Explorer(IE). In legacy IE 6, VML is used to draw the graphics.
Google Chart Java Module 是一个基于 Java 的开源库,可在 GWT 应用程序中提供优雅且功能丰富的 Google Charts 可视化效果,并且可与 GWT 部件库搭配使用。有几章讨论了 Google Charts 的所有基本组件,并在 GWT 应用程序中提供了适当的示例。
Google Chart Java Module is a open source java based library to provides an elegant and feature rich Google Charts visualizations within a GWT application and can be used along with GWT widget libraries. There are chapters discussing all the basic components of Google Charts with suitable examples within a GWT application.
Features
以下是 Google Charts 库的显著功能。
Following are the salient features of Google Charts library.
-
Compatability − Works seemlessly on all major browsers and mobile platforms like android and iOS.
-
Multitouch Support − Supports multitouch on touch screen based platforms like android and iOS. Ideal for iPhone/iPad and android based smart phones/ tablets.
-
Free to Use − Open source and is free to use for non-commercial purpose.
-
Lightweight − loader.js core library, is extremely lightweight library.
-
Simple Configurations − Uses json to define various configuration of the charts and very easy to learn and use.
-
Dynamic − Allows to modify chart even after chart generation.
-
Multiple axes − Not restricted to x, y axis. Supports multiple axis on the charts.
-
Configurable tooltips − Tooltip comes when a user hover over any point on a charts. googlecharts provides tooltip inbuilt formatter or callback formatter to control the tooltip programmatically.
-
DateTime support − Handle date time specially. Provides numerous inbuilt controls over date wise categories.
-
Print − Print chart using web page.
-
External data − Supports loading data dynamically from server. Provides control over data using callback functions.
-
Text Rotation − Supports rotation of labels in any direction.
Supported Chart Types
Google Charts 库提供以下类型的图表−
Google Charts library provides following types of charts −
Sr. No. |
Chart Type / Description |
1 |
Line Charts Used to draw line/spline based charts. |
2 |
Area Charts Used to draw area wise charts. |
3 |
Pie Charts Used to draw pie charts. |
4 |
Sankey Charts, Scatter Charts, Stepped area charts, Table, Timelines, TreeMap, Trendlines Used to draw scattered charts. |
5 |
Bubble Charts Used to draw bubble based charts. |
6 |
Dynamic Charts Used to draw dynamic charts where user can modify charts. |
7 |
Combinations Used to draw combinations of variety of charts. |
8 |
3D Charts Used to draw 3D charts. |
9 |
Angular Gauges Used to draw speedometer type charts. |
10 |
Heat Maps Used to draw heat maps. |
11 |
Tree Maps Used to draw tree maps. |
在接下来的章节中,我们将详细讨论每种上述图表类型以及示例。
In next chapters, we’re going to discuss each type of above mentioned charts in details with examples.
Licence
Google Charts 是开源的,并且免费使用。请单击以下链接: Terms of Service 。
Google Charts is open source and is free to use. Follow the link: Terms of Service.