O'Reilly logo

Visualforce Developer's Guide by W.A.Chamil Madusanka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A complex chart with Visualforce charting

We can use Visualforce charting to build complex charts that represent various data series in one chart. For example, we can build a chart with multiple data series. The following example shows the number of items sold in three different years. The code shows the custom controller the custom controller. The getComplexChartData() method prepares the data for the chart component. This controller also has a @RemoteAction method to get the data to the chart component. But this example hasn't used the JavaScript remoting. It illustrates the way of reusing the data generation method for both server-side and JavaScript remoting methods.

public class ComplexChartController{ // Return a list of data points for a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required