Flash charts do not display some negative values  Flash dial gauge template customization

Chapter 1: Developer Features

Dial gauges

EP 6.1 lets you create a dial gauges, which allow you to create graphic comparisons, patterns, and trends of data. Figure 1-1 shows an example dial gauge.

Figure 1-1: Sales comparison

Instead of analyzing several columns of worksheet data, you can see at a glance what the sales figures are for each salesperson.The following procedure uses the sample EP data to create a dial gauge.

StepsCreating dial gauges

NoteThis tutorial requires the Flash Player version 7 or later.

  1. Log in to Web Studio.

  2. Select Build Portlets from the left pane, then click New to open the Portlet Builder.

  3. Click Add to perform a new Web capture.

  4. In the New Web Element window, enter this URL in the Location field, then click Find:

    http://<HOST>:<PORT>/onepage/portlets/flash/dialgauge/SampleData.jsp
    

    where <HOST> is the name of the machine on which EP is installed, including the domain (for example, “tahiti.sybase.com”), and <PORT> is the number of the port on which EP is running.

  5. Verify that the selected Format is One Click and click Next.

  6. Perform a one-click capture on the table; when the window displays where you select which captured image to use, click Select by the image with the gray background and the thin white border lines between the table cells. Click Next.

  7. When the Split window displays, click Next.

  8. When the Define window displays, select the Records Contain Labels option, and click Next.

  9. At the Filter window, click Next.

  10. In the window where you enter the Element Name, enter dial gauge, and click Next.

  11. In the Continuous Capture window, click Finish. You return to the Portlet Builder.

  12. In the Portlet Builder, click the Labels button.

    In the Portlet Labels dialog box, enter the word “Header” in the Label field, then click the plus sign to create a label for that entry.

    After you click the plus sign, a new Label field displays. Create a new label for each of the following:

    The labels you create indicate which column:

    NoteThe Event Value label is not covered in this example. See “Flash dial gauge template customization” for more information on the Event Value label.

    Click OK when you finish.

  13. In the Portlet Builder, click the element name (“dial gauge”) to expand the list of column names. To the right of each column name is a drop-down list with the label names you created earlier.

  14. Selecting from the drop-down lists, create the following associations. Do not be concerned if the portlet preview in the right pane disappears.

  15. Set the top drop-down list in the left pane to “Content.” The preview reappears. The top drop-down must be set to “Content” to create the Flash dial gauge.

  16. Verify that the selected Device Type is “portal.”

  17. Click the down arrow to the right of the Template button, and select Dashboard from the drop-down list. A wizard appears that lets you create a Flash dial gauge dashboard template. The template you create replaces the table with the Flash dial gauge movie file.

  18. In the menu that displays, select Dashboard. You see the Flash Dial Gauge Template Customization window.

  19. On the General tab, enter:

  20. On the Appearance tab, enter 270 for the Angular Width.

  21. On the Colors tab, enter #990099 and click Add to add the color to the list of default colors.

  22. Do not make any changes on the Header & Text tab.

  23. On the Labels tab, accept the default values for all options with these two exceptions. Enter:

  24. Do not make any changes to the Tooltip, Tick Marks, or Event tabs.

  25. On the Preview tab, view the template customization changes you entered.

    NoteLabels that contain decimal divisions contain two decimal places, and all labels have a dollar sign and a space prefix.

  26. Click Finish to save the template automatically and apply it to the portlet.

    When you see the message that the dashboard widget has been saved, click OK.

    NoteYou return to the Portlet Builder. If you see “Missing XML data” or a blank preview in the right pane, do not be concerned—this is not an error. Not all flash movie portlets can be previewed in the Portlet Builder.

  27. In the Portlet Builder, click Save.

  28. In the Finish window, enter Sales Gauges for the portlet name.

  29. On the Roles tab, click Add All to add all roles to the Assigned Roles list.

  30. Click Finish. When you see the message that the portlet was successfully saved, click OK.

  31. In the Portlet Builder, click Close to close the window.

    When you return to the Portlet Manager, you see the portlet you created in the list of new portlets.

  32. Select the Sales Gauge portlet in the detail list and click Preview. You can also right-click the portlet name and select Preview from the menu.

    The dial gauge movie renders animated dials of the sample data.

To edit a dial gauge template, edit the portlet and run the dial gauge wizard again.





Copyright © 2004. Sybase Inc. All rights reserved. Flash dial gauge template customization

View this book as PDF