StockByMakeSheet

In Chapter 16, we saw how the StockByMakeSheet class could be used to create either a pie or bar chart based on the value of the {constructor} argument. We only need to make minimal changes to this class for it to display a bar chart. This additional code to the {create-layout} method is shown in Figure 18-5.

The code listed in Figure 18-5 shows just the changes required for the {create-layout} method to display the parsed XML data in a bar chart. You can find the remainder of the code in Chapter 16.

Figure 18-5. Additional code listing for the StockByMake Sheet.create-layout method.
 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| || Method: create-layout || Purpose: Calls the server-side process and then parses ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.