Creating image maps for charts
If you want to view your chart output in HTML, there are a number of ways to get it into your HTML file:
- export it to HTML
- Copy and paste the image into another application that exports HTML
- Use the Output Management System - OMS
However these images are static. If you want to add
a bit of interactivity, you can use OMS to create an image map. This will
allow the viewer to hover their mouse over the chart to have additional
information about the chart pop up (e.g. the Y-axis value).
To get this, you need to use the Output Management System (OMS).
Creating a new OMS request
Go to the menu item Utilities, and select OMS Control Panel.
Under Output Types, select either Charts or select any combination that includes Charts.
Under Command Identifiers, select everything (or select just the procedures you are interested in).
If you selected Tables under the Output Types box, the Table Subtypes for Selected Commands box will be enabled. If enabled, select the tables you are interested in (or select everything).
Specify that you want to save the output as a file under the Output Destinations group box by selecting the File radio button and either typing in a file name or browsing to a directory and typing in a file name.
Once you select the File radio button, the Options button is enabled. Click on the Options button and in the Format dropdown, scroll up and select HTML.
In the Graphics Images group box, select both Include images and Include imagemaps. Leave the Format as JPG and the Size at 100%. Select the Continue button.
Finally select the Add button. This will add this job to the OMS control panel.
Now select the OK button. This will pop-up a dialog box giving you a summary of what you requested. Select the OK button on this dialog box also.
Note that in the status window at the bottom right side of your IBM SPSS Statistics window you will see OMS indicating that OMS is active.
Now that OMS is active, create any output that you wish to be saved to HTML.
When you are finished creating the output you want in your HTML file, you need to tell OMS to stop recording. Go back to the Utilities->OMS Control Panel dialog. Select the End All button, and select the OK button. This will again pop-up a summary dialog. Select OK on this dialog.
You will see Running OMSEND in the window where you formally saw OMS. When it is done converting the output to HTML this status will be cleared.
Now go to the directory you saved your HTML file in and open the file in your favorite browser. Hover your mouse over one of the data elements (bar, point, etc). A tooltip will popup showing you the X-axis label and value, the Y-axis label and value, and any legend labels and values.