Google Charts in Java: add a chart to a webforJ app

Sooner or later, most business apps need a chart: revenue by month, orders by region, tickets by status. In a Java web app that often means a detour into JavaScript charting libraries, a second build, and code that passes data back and forth between the two.
Google Charts in Java can skip that detour. With webforJ, a chart is one more component in your view. You pick a chart type, hand it your rows and a few options, and it draws itself in the browser while your code stays in Java. This guide builds a chart step by step, from the first pie chart to live updates and click handling.
The Google Charts documentation has live, interactive samples you can click through in the browser, with the full Java source next to each one.
Add the dependency
GoogleChart ships as its own artifact. Add it to your pom.xml next to the webforJ dependencies:
<dependency>
<groupId>com.webforj</groupId>
<artifactId>webforj-googlecharts</artifactId>
<version>${webforj.version}</version>
</dependency>
There is no JavaScript to install. The component loads the Google Charts library in the browser for you.
