Formatting Charts

In this section:

Charts allow you to present information graphically, using such visual cues as color, size, and position to convey relationships between measures (numeric fields to be aggregated) and dimensions (categories) and to identify trends and outliers. You can create a wide variety of charts. For example, you can review your data (Gross Profit and Product Category) using different chart types (for example, bar chart, area chart, or line chart). The chart options give you an edge in deciding which chart to use to highlight certain information or trends.

Once you have created a chart, you can apply various styling and formatting changes to it. For example, bolding text in a legend or header, changing the color of a series, or changing the appearance of axis lines. The chart formatting options allow you to specify how components display, enabling you to format your chart to suit your needs.

The formatting capabilities of WebFOCUS Designer let you indicate which aspects will display, how fonts are utilized, and which additional options will enable you to create an effective, styled chart. This allows you to control the display of your chart information, giving you every opportunity to create a chart that you can share, distribute, and reuse on pages.

Customizing Charts

As you work with your chart, you can make modifications that improve the display of your chart, highlighting the layout and presentation of the chart components. Some of the formatting options include:
  • Controlling font display
  • Customizing headers and footers
  • Changing the format of your legend
  • Formatting the axes of your chart
  • Formatting the series of your chart
  • Customizing the format of your matrix chart
  • Enhancing a box plot
  • Enhancing your grid
  • Enhancing a gauge
  • Adding a theme
  • Adding color to your chart

You can access the formatting options from the Format tab, as shown in the following image.

Format tab for a chart

General options display, by default, but you can use the Quick Access menu to select a different aspect of your chart, for example, Legend, Axis, Series, or Matrix options, as shown in the following image.

Different options are available, depending on the chart type.

Once you select an area of your chart to modify (for example, Axis), you can use the intuitive options and menus to make selections, as shown in the following image.

Axis properties for a BLA chart

You can also access styling options by right-clicking an area of your chart, such as a riser or axis label, and clicking Style.

Note: If you are working with a map, reference lines, or data grids, additional tabs will display, enabling you to make formatting changes to these components. These tabs do not display, by default.

By streamlining formatting options in one place, you can quickly format charts to enhance the display of your data. Whether it be color-coding a series in a chart or changing the font size of your data labels, a customized, formatted chart is just a click away.

Controlling Font Display in a Chart

How to:

You can use the font formatter in WebFOCUS Designer to control how fonts are displayed in your chart. This is a quick way to apply styling, colors, or a specific font type for any text within your chart. The font formatter displays in different areas of the Format tab (for example, Legend, Axis, Series, and Matrix options). Depending on the chart type and what you want to format, you can use these options to enhance the fonts in your charts. The font formatter is shown in the following image.

You can also change the font of a header or footer in your chart. This allows you to control how a chart is labeled or highlighted, which is useful when the chart will be distributed. For headers and footers, you can:

  • Change the font type and font size.
  • Add bold, italic, and underline emphasis to your text.
  • Set the justification of text in your header or footer. For example, left-aligned, centered, or right-aligned.
  • Change the font color or background color.
The styling toolbar for header and footer text is available along the top of the canvas, as shown in the following image.
Text styling toolbar

When reviewing text that displays in your chart, you might want to increase the font size of the header text to enhance its visibility. Editing the font types and styles in your chart gives you more control over how information is displayed and presented.

Procedure: How to Change the Font Type in Your Chart

Changing the type, size, and emphasis of a font improves the impact for the user that is analyzing this chart. To change the font of a chart header:

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data.

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

  3. Add one or more measures and dimensions to your chart.
  4. Double-click Chart Heading to enable it for formatting, and change this text to Discount by Product Category.

    The styling toolbar displays along the top of the screen, as shown in the following image.

    Chart with text toolbar to edit header
  5. Ensure that the header Discount by Product Category is selected or highlighted.
  6. From the styling toolbar, change the font type to Cambria, size 24, Bold.

    The revised chart header displays and reflects the new font type and styling, as shown in the following image.

    Same chart with 24 pt Cambria header text

    Note: You must select the text you want to modify in your header or footer before you apply any changes to the font.

Adding Headings and Footings to a Chart

How to:

You can use headers and footers to add key information, such as the purpose of the chart and the audience. For example, if you have gross profit for different product categories, you can add a header to highlight this information in your chart.

You can add multiple lines of information into the heading and footing areas in a chart. This accommodates thorough explanations and additional information while offering the most readable presentation.

You add a new line in the heading and footing by pressing the Enter key. The number of lines of heading and footing you can add to a chart is only limited by the available real estate on the chart. The chart body will adjust to fit within the available space with the heading/footing lines inserted. You can change the font size or other presentation aspects using the editing toolbar that displays. When you are finished editing the heading and footing and edit mode is closed, the chart canvas adjusts to ensure that all lines of the heading or footing are visible, as shown in the following image.

Headers and footers can contain the same type of information. Footers are not enabled, by default, but can be enabled from the Content area on the Settings tab, as shown in the following image.

Enable footing

You can make styling changes to the information in your headers and footers, which allows you to interactively style the text according to your preferences. Using a WYSIWYG canvas, it delivers formatting changes instantly, allowing you to see the results of your selections as you make them. When editing your header or footer, you can find the options at the top of the canvas, as shown in the following image.

Text styling toolbar

You can change the font and font size using the drop-down lists. You can add bold, italic, and underline accents to your text. In addition, you can change the positioning of your text (left, center, and right). You can also customize the color of the text, as well as the background of the header or footer text area. When your formatting is complete, you can close the toolbar and continue working with your chart.

Note: You can double-click the heading or footing to resume modifications at any time.

Procedure: How to Add Headings and Footings to a Chart

You can add and style headings and footings in a chart.

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data.

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

  3. Add one or more measures and dimensions.
  4. On the Settings tab, expand the Content area and select Enable footing.

    The headers and footers display, as shown in the following image.

  5. Double-click the heading and change it to Sales by Category.

    The styling options to edit the header and footer text are shown in the following image.

    Text styling toolbar
  6. Change the font color to grey and change the font size to 20, as shown in the following image.

  7. Change the footer to read October, 2019.
  8. Change the font size to 8 and right-justify it, as shown in the following image.
    chart with right-justified, size 8 footer

    Using headers and footers, you can add the finishing touches on your charts, identifying them with useful information for your audience. For example, when sharing and distributing your charts, headers and footers can help identify and streamline your communication.

Formatting Legends in a Chart

In a chart, the legend identifies values according to the color-coded data values that display. The legend typically displays on the right side of the chart, but you can change the location using the formatting options. You can format a legend in any of the following ways:
  • Turn the Legend On, Off, or set it to Auto.
  • Change the font features of the legend (for example, bold or a larger font size).
  • Change the format of the title of the legend.
  • Access options to change background options, including setting the background color and setting the border line width, size, and color.
  • Set the display options for the legend.

To access the legend formatting options, click the Format tab. From the quick access list at the top of the tab, select Legend. The Legend formatting options display in the following image.

Legend Formatting Options

Use the On, Off, and Auto buttons to control how the Legend appears on your chart. You can optionally select On or Off, depending on whether you want to display the legend in your chart. The legend display setting is set to Auto, by default, which displays the legend only if there are multiple series in the chart.

Note: Occasionally, charts are large and require additional real estate. Hiding the legend, or turning it off, enables you to preserve additional room as required by the chart.

Under Labels, you can format the font used for the label text in your legend. These options include Font type, Style, Size, and Color.

Depending on the type of chart you use, adding data to a specific field automatically generates a title for the chart legend. For example, the following image displays a matrix marker chart that allows you to compare the differences between values by circle size. Since the measure Gross Profit has been added to the Size bucket, the legend title for this chart shows as Gross Profit, which is highlighted in the following image.

A matrix marker chart measuring Gross Profit Per Year

Under Titles on the Format tab, you can choose to show or hide the legend title with the Show Titles check box. You can also choose the font style and formatting of the legend title.

Under Other on the Format tab, you can perform tasks such as changing the position, setting the background color, and setting the border line width, size, and color. You also have options to display the legend options in reverse order and set it as collapsible.

Using Axis Options in a Chart

In this section:

How to:

Depending on the chart type (for example, bar chart), you can format the axes to customize the display of the information. This includes items such as labels, titles, and font formatting. For example, you can choose to hide the labels in your chart or format the font to add clarity to your chart. You can easily customize the X and Y axis with options that suit your needs. To access these options, select Axis from the quick access menu on the Format tab. Other options, such as dual-axis, bi-polar axis, and split axis behavior, and a continuous time axis, are available by right-clicking a field once it has been added to your chart or using the menu next to the Vertical bucket.

You can rotate the labels in your axes as well as stagger them. This allows you to shift the display of information, which is particularly useful when your chart is very dense. You can modify the lines for individual axes, enhancing the frame of the axis on the chart. You can also show ticks, which allows you to view milestones in your data. You can also change the position of an axis, enabling you to dictate where your axis information will display (for example, right). The options on the Format tab for formatting an axis are shown in the following image.

In bar, line, and area charts, you can control x axis scrolling behavior from the Scroll menu. By default, the Scroll option is set to On and the scrollbar is enabled. When a large number of values are displayed on the x axis, a scrollbar generates so that they all have enough space to fit comfortably in the visible area of the chart. To disable the scrollbar, set the Scroll option to Off. When the scrollbar is not enabled, points and labels are compressed to fill the area occupied by the chart. As an alternative to the basic scrollbar, set the Scroll option to MiniChart. Instead of using a basic, default scrollbar setting, the minichart option provides a simplified image of the chart, with a transparent scrollbar, as shown in the following image.


Bar chart with minichart scrollbar

You can point to the edge of the minichart scrollbar and use the double-headed arrow cursor to change the visible area of the chart by expanding or contracting the scrollbar. To set the default minichart scrollbar size, use the Count property that appears on the Format tab when you select the MiniChart option. The count represents the number of values initially visible on the x axis. For example, the default Count value of 10 means that a maximum of 10 values display in the chart at all times, regardless of the physical width of the chart area.

In bar, line, and area charts, you can also choose whether the y axis, or vertical axis, should be shared between all measures, or split so that each measure is separated and generates separate bars, lines, or areas. By default, the axis is blended, so all measures share the same y axis. To split the y axis, on the Settings tab, click the menu next to the Vertical bucket (or Horizontal bucket if the axes have been swapped), and click Split axis, as shown in the following image.


split axis in menu

This option is especially useful if there are large disparities between the values of different measure fields. For example, the revenue values in a data source may be many times greater than the quantity sold values. To merge the axes back together, click the same menu, and then click Blended axis.

Alternatively, if you want to split the measure fields in a bar, line, or area chart into groups on separate axes, you can use the bi-polar axis option. The bi-polar axis option creates a second set of axes to which you can add some of your measure fields, instead of splitting each measure onto a separate axis. To enable this option, click the menu next to the Vertical bucket and then click Bi-Polar axis. To switch the y-axis that a measure field uses in bi-polar axis mode, click the axis icon next to the field in the measure bucket, or right-click a measure field and click Top Axis (Y1) or Bottom Axis (Y2).

When creating a bi-polar axis chart, it may be useful to change the chart type of the risers for one of the measures on an axis to differentiate it. Right-click the measure field in the Vertical bucket (or the Horizontal bucket if the axes have been swapped), point to Shape, and choose whether the chart type for that measure should be bar, line, or area. The following image shows a bi-polar axis chart in which the Cost of Goods field is represented by a line chart.


Bi-polar axis chart with Cost of Goods as a line

Another way to show multiple measure fields on separate axes is to use dual axes. Instead of splitting the chart into horizontal sections, one or more measure field is plotted against the y1 axis on the left, and the other uses the y2 axis on the right. To specify which axis a measure field should use, when the Blended axis option is selected, click the axis icon y axis icon next to the field in the measure bucket, or right-click the field and click Left Axis (Y1) or Right Axis (Y2). Each of these axes can be styled separately from the Axis options on the Format tab. When using dual axes, take note of which axis is used for each measure, as the values displayed in the chart may visually appear to be closer than they are in reality.

The same options are available for horizontal bar, area, and line charts, but affect the x axis, or horizontal axis, instead.

Procedure: How to Format Axes

You can format the axes of your chart to customize the display of information, including labels (rotated and staggered), titles, and axis-specific fonts.

  1. Create a chart using WebFOCUS Designer, or open an existing WebFOCUS Designer chart.

    Axes are used in bar, line, area, scatter, bubble, and circle plot charts.

  2. On the Format tab, click General to open the quick access menu, and then click Axis.

    The options for editing your axes display.

    You can select the Y-axis or edit the X-axis. The axis selection determines where changes are applied.

  3. On the X-axis, perform the following formatting tasks:
    1. In the Labels section, change the font format of the labels to bold.
    2. Expand the Title section and change the size of the font for the axis title to 16. Change this to bold as well.
  4. Select the Y-axis option and perform the following formatting tasks:
    1. Change the font format of the label to italic.
    2. Change the size of the font for the Title to 16. Change this to bold as well.

    When you preview the chart, you can see that styling on the axes has been modified, giving you a custom look and feel for your chart, as shown in the following image.

  5. You can rotate the labels on the X-axis. In the Labels group, use the Rotation option to rotate the labels by 45 degrees, as shown in the following image.
    Stacked Bar Chart - Rotation of X-axis entries
  6. You can also modify the line size of the axes. In the Lines group, use the Axis lines option to change the line size for both axes to 5. Making the axes lines bigger creates a more definitive frame, as shown in the following image.
    Stacked Bar Chart with thicker lines along both axes

    With the axes of your chart formatted, you can continue making modifications or apply similar formatting to the axes in other chart types.

Controlling the Display of Time-Based Axes

By default, when you create a chart that has a dimension on an axis, missing values are not displayed on that axis. For example, if you create a bar chart showing revenue by product category, but there are no revenue values, including zero, for televisions, then televisions will not appear on the horizontal axis in the bar chart.

However, when you create a line or area chart using a date or date-time field as one of the axes, this is not the case. In these chart types, when a date or date-time field is used, the time axis option is enabled by default. This option allows you to show the entire, continuous range of time encompassed by your data, even if there are missing values in between. Missing values are extrapolated based on the nearest values. The time axis option allows you to see changes in your data over time on a continuous scale, displaying date values more intuitively and making it easier to recognize gaps in your data.

When the time axis option is enabled, the values in the chart are plotted along a continuous date axis, as shown in the following image.


image of a chart with time axis enabled

Although there were no sales between December 6 and December 20 in the image shown above, those days occupy the same amount of space on the x-axis as the days in which there were sales, and the line is extrapolated for them. The same chart with the time axis option disabled is shown in the following image. Only dates with values in the data set of the chart display. Since not all dates appear in the chart, each existing date value is labeled on the axis.

chart with time axis not enabled

To disable the time axis option and show only the date values in your data source, right-click the date or date-time field in the Horizontal or Vertical bucket of your chart and deselect Time axis, as shown in the following image.



To re-enable the time axis option, right-click the date or date-time field and click Time axis again.

Formatting Series in a Chart

How to:

A series represents a set of related values in a chart. These could be different measure fields in a chart, or different dimension field values in a chart. You can format all series together, or format each separately, including color, shape, display options for labels, and other options, including the ability to hide overlapping labels. You can select a specific series in a chart to which to apply changes, or you can select All Series, which applies changes to all series in the chart.

Having the ability to format by series gives you control over your content and allows you to customize display options at the series level. For example, you might want to color code a chart based on a range of values. You can also specify options for the data labels of the series. By default, these are enabled or hidden automatically depending on the chart type, but can be turned on or off. You also have the standard suite of font options, as shown in the following image.

Designer series properties for a line chart

Different kinds of charts allow you to make different series-level style changes. For example, in a bar, area, or line chart you can set the width of all bars, or change a series to display as a line or area instead of a bar or bar segment. In a ring pie chart, you can change the size of the hole in the middle when viewing the options for all series, and on a scatter plot or bar, area, or line chart, you can add and style a trend line with different formulas for all series or an individual series. Other chart types allow different styling changes.

Additionally, some series styling options are only available when modifying all series in a chart, or only available when editing a single series. For example, when creating a bar chart, you can set the bar width for all series, but not for a single series. On the other hand, you can change the fill color for a single series, but not for all series in the chart.

When working with series in a chart, you can also set an option to control the display of data labels in your chart. The default is Auto. This gives you the ability to specify how your data will be presented (for example, by Value or Percentage), which is particularly useful in cases where you want to save real estate when using data labels in your chart, or show additional information. You can click the drop down to access a full list of content options, as shown in the following image.

You can use the following terms to decide the best way to display the content of your data labels.

When creating a stacked bar, stacked area, or stacked line chart, you can also select the Show stacked totals option to show the summed total of all series at the top of each bar or sort-value point.

You can also Wrap Data labels, which allows you to truncate available chart space or show your data on multiple lines. The following examples show how the wrapping option works.

Example of WrapDataLabel=True:

"France

$123.4

23.4%"

Example of WrapDataLabel=False:

"France, $123.4, 23.4%"

Specifically, the data label options allow you to determine what is shown when Show label is ON. For example, Label,Value,Percentage. If the option is set to Auto, the chart engine decides what it thinks is the best content to show. Typically, this is the value of the riser or slice. For example, on a basic pie chart, the Auto setting produces the following result.

You have additional content choices. For example, you can choose Label, which corresponds to the series label that is shown in the legend. When you select the Label option, you also have the option of turning the legend off, so as not to duplicate the information that is displaying in your chart. The Label option is shown in the following image.

You can also choose Percent, which shows the percentage of the whole for each riser or slice. This is very useful for a pie or stacked bar chart, as these are the charts that are best used to visualize the concept of percentage-related content, as shown in the following image.

You can also display the Value, which is the riser/slice value. This is often the same thing you will get if you choose Auto.

There are also options for you to combine three choices, such as Value, Label, and Percent. This allows you to display all three items, as shown in the following image.

Click Wrap Data labels to display the content on three separate, unique lines, or clear the Wrap Data labels check box to display all label information on a single line.

Procedure: How to Format a Series

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data.

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

  3. Create a Vertical Stacked Area chart.
  4. Add a measure to the Vertical bucket, a dimension (for example, a time based dimension with month or year values) to the Horizontal bucket, and another dimension to the Color bucket, as shown in the following image.
  5. On the Format tab, open the quick access menu and then click Series.
  6. In the Data labels section, in the Show label group, turn data labels on by changing the setting from Automatic to On.

    Since All series is selected by default, labels are displayed for every series in your chart.

  7. Format the labels with 10 point, red font using the font options.

    The values in the chart reflect your custom formatting, giving you a better view of your data, as shown in the following image.

  8. Change the color of one of the risers.
    1. From the series selection drop-down menu, on the Format tab, directly below the quick access menu, select a single series. Each series represents a value from the field in the Color bucket.

      If your chart contains multiple measure fields, then each series represents a measure field in addition to or instead of a dimension value.

    2. In the Shape section, change the color selected for the Fill option to a color of your choice.

    The selected series riser updates to show the new color, as shown in the following image.


    Area chart with a series color changed

Formatting Matrix Charts

How to:

If you are working with a chart type that supports a matrix format (for example, Matrix Marker, or another chart type utilizing matrix rows and columns), WebFOCUS Designer provides a selection of formatting options that you can use to customize and enhance the styling of your chart. A matrix format is a grid that contains values based on the intersecting data points, which is useful for reviewing changes and trends over time. Available formatting options for matrix charts include Headers and labels, and Lines, as shown in the following image.

Matrix options

You can customize the row and column headers and their corresponding values in a matrix chart. Specifically, you can change the font type, font size, and color. You can also change the emphasis of the font using bold or italic styling. You can also change the alignment of row values text.

When working with lines in your matrix chart, you can change the line style (for example, solid or dotted) and the thickness. These formatting options allow you to make visible enhancements that will improve the appearance and presentation of your matrix charts.

Procedure: How to Format a Matrix Chart

To format a matrix chart:

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data.

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

  3. From the Content picker, select the Matrix Marker chart type.
  4. Add two dimensions and two measures to the chart. These data fields should be placed in the Vertical, Horizontal, Size, and Color buckets.
  5. On the Format tab, click General and then click Matrix options from the drop-down list.
  6. Apply formatting changes for the matrix chart, including:
    1. Headers and labels, which allow you to customize the font options for row and column headers and values. Font options include font type, bold, italic, font size, and font color.
    2. Line style, which allows you to adjust the type, size, and color of the lines for the matrix chart.
  7. Change the font being used for row and column headers to bold, red, and size 16 font.

    The updated matrix chart now displays customized row and column headers, as shown in the following image.

  8. Using the options in the Lines section, change the line style to blue, dashed lines.

    The resulting matrix marker chart resembles the one shown in the following image.


    matrix marker with styled headers and lines

Formatting Box Plots

How to:

A box plot is a common chart type used to show key distribution information for a set of data points. A box plot displays outliers, the median, the upper and lower quartile, and the maximum and minimum with outliers excluded, by default. However, you can use the Box Plot options on the Format tab to show the mean, or average, as well. Additionally, you can change the display of the whiskers from lines to boxes, and change the style of the median and whisker lines.

To access the Box Plot properties when creating a box plot, click the Format tab and select Box Plot options from the Quick Access menu. The following options are available:

Procedure: How to Format a Box Plot

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data.

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

  3. From the Content picker, select the Statistical Boxplot chart type.
  4. Add a measure to the Vertical bucket and a dimension to the Horizontal bucket.

    A single measure value displays as a line in each column.

  5. Use one of the following methods to generate a set of data for each column:
    • Add a dimension field to the Detail bucket. This field should provide multiple records for Horizontal bucket value.
    • Change the calculation option from Summaries to Details Detail (PRINT) icon. If you have a very large data source, this may generate too many records to evaluate in the box plot.

    A set of box plots appears on the canvas, showing indicators for outliers, maximum and minimum, median, and upper and lower quartiles.

  6. On the Format tab, click General and select Box Plot options from the quick access menu.
  7. Optionally, select the Show Mean check box to display a marker in each box plot indicating the location of the mean.
  8. Optionally, select the Show Hat as Box check box to display the whiskers as narrow boxes on either side of the box showing the interquartile range.
  9. Optionally, change the style of the median lines and whisker lines.

    Click the box showing an image of the line to change the line pattern to one of a variety of dashed and dotted lines. Use the spinner to change the width of the lines, in pixels. Click the color swatch to change the color of the lines.

    The box plot updates on the canvas as you make your changes.

  10. Once you finish creating and formatting your box plot, save it, or convert it to a page to develop more content.

Formatting Data Grid Charts

How to:

A data grid is a type of chart that displays a tabular representation of your data, similar in structure to a tabular report. A data grid allows you to review data in a row and column format, similar to a printed report. Data grids are easy to create, and provide features such as a tooltip for each cell of the grid. WebFOCUS Designer provides numerous options to style and format a data grid.

Values in a data grid can be sorted, and data grids can be shared or saved for use on a page. A data grid is shown in the following image.

You can format a data grid using the options on the Format tab. The Format tab contains two sets of options, General and Datagrid options, which you can access using the quick access menu, as shown in the following image.


Data grid Quick Access menu

The General section provides a set of options that are common to all chart types. These options are divided into three sections: Theme, Frame and background, and Other.

The Theme section provides a menu that allows you to select a StyleSheet to automatically format the data grid. You can select from a list of themes available with WebFOCUS, or click Custom to select a StyleSheet from the legacy templates or your repository.

The Frame and background section includes the following options:

The Other section includes the following options:

You can also select styling options that are specific to data grids. These are listed when Datagrid options is selected from the quick access menu on the Format tab. You can also access these options by right-clicking an area of the data grid and clicking Style.

The Datagrid options are divided into three sections: Headers and values, Background and padding, and Other.

The Headers and values section allows you to define the styling properties of the item selected from the Headers and values menu. You can set these properties for the row headers, column headers, cell values, and column totals. The Headers and values section contains the following options for each area of the data grid.

The Background and padding section allows you to style the cells in the data grid by adding bands and increasing the cell padding. Options in this section include the following:

The Other section allows you to add column totals to the data grid and freeze column and row headers. The options in this section are as follows:

Procedure: How to Format a Data Grid

You use the options on the Format tab to customize a data grid. These options allow you to style the data grid to match your preferences while maintaining the simplicity and clarity of the data grid chart format.

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data.

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

  3. From the Content picker, select the data grid chart type .
  4. Add fields to the data grid.
    1. In the Resources panel, with Fields selected from the sidebar, in the Dimensions area, expand Product and drag Product,Category to the Row bucket.
    2. In the Measures area, expand Sales and drag Cost of Goods and Revenue to the Measure bucket.
    3. In the Dimensions area, expand Customer and drag Customer,Business,Region to the Column bucket.

    A basic data grid has been created, showing Cost of Goods and Revenue sorted by Product Category across Customer Business Region.

  5. Add a header to the grid.
    1. Double-click the Chart Heading text.

      The text is highlighted and Rich Text Editor displays.

    2. Type Regional Sales into the chart heading area and click the X on the styling toolbar.

      The chart header is changed to Regional Sales.

  6. Open the Format tab.
  7. Change the background color of the cells to seafoam green.
    1. In the Frame and background section of the Format tab, click the color sample under Frame.

      The color picker opens.

    2. Click More to access the color wheel. Select seafoam green by clicking on the wheel in a location between cyan and green, and then using the brightness slider to select a light seafoam green color. Alternatively, type a hex code value into the text box. For example, #adebcc.
    3. Click OK.

      The data cells in the data grid now have a seafoam green fill.

  8. Access additional styling options for the data grid. Open the quick access menu and select Datagrid options.
  9. Make the across column headers bold.
    1. From the Headers and values drop-down menu, select Column headers.
    2. Click the Bold button to make the text bold.
  10. Add pink bands to the grid.
    1. Expand the Background and padding section.
    2. Select the Alternate row color check box.

      The rows now alternate between the seafoam green background and the default gray bands.

    3. Click the color sample under the Alternate row color check box.

      The color picker opens.

    4. Select the pink color from the palette.

      Now the data grid shows alternating seafoam green and pink rows.

  11. Add column totals to the grid.
    1. Expand the Other section.
    2. Select the Show column total check box.

      The column total row appears on the data grid.

  12. Style the column row total by changing the text and border color to purple.
    1. From the Headers and values drop-down menu, select Totals.
    2. In the Format subsection, click the color sample to change the text color for the column totals.
    3. Click More to access the color wheel, then select a shade of purple.
    4. Click OK.

      The column totals now show in purple text.

    5. Add a purple border to the columns total row.

      In the Border style subsection, click the color sample to open the color picker. From the Custom Colors palette, select the same purple color that you used for the text. This color was automatically saved and added to the Custom Colors palette.

    6. Click OK.

      The text and border for the column totals now use the same shade of purple.

    An example of what the resulting grid may look like is shown in the following image.


    Data grid with styling

Customizing a Gauge Chart

A gauge is a simple chart that allows you to display basic KPI values. You can choose to display these values with a standard or simplified dial graphic, or alone, as text only. The default, simple, gauge type is shown in the following image.


simple gauge

You can change the gauge type from the display options, above the buckets on the Settings tab. Use the default, Simple option to show a simple gauge dial, use the Circular option to show a gauge dial with a pointer and tick marks, or use the KPI option to show text only.

When you create a gauge, the Gauge Properties option becomes available on the Format tab. You can change the following properties of the gauge label and value text:

Adding a Theme to a Chart

How to:

A theme is used to determine the coloring and hues that display in the charts you configure using WebFOCUS Designer. For example, the default border color and chart colors are determined by the theme.

When creating stand-alone content, the default theme is Designer 2018. When you turn the visualization into a page by adding a second new content item, the theme used for the chart is applied to the page. When you add items to the page, either by creating them or adding them as external content, the page theme is used as the default for all content items. You can then change the theme for each individual item.

You can use one of the themes included with WebFOCUS, or you can create your own theme. For example, you may want to apply a corporate standard theme to your chart. You can add and change themes to suit your requirements (for example, branding).

Available themes that are called by WebFOCUS Designer are located in the Themes folder in the Global Resources area, accessible from the Workspaces tab of the WebFOCUS Hub or Home Page, as shown in the following image. Custom themes can be added to folders within the Custom folder.

Themes folder in Global Resources area

Supported formats for themes include .css and .sty. A .css theme file is used to style a page, while .sty file is used to style content such as charts and reports. When files called theme.css and theme.sty are placed into the same folder in the custom themes folder of the Global Resources area, they are available for selection in WebFOCUS when editing page components and content items. The two files are associated, so when the .css theme file is applied to a page, the associated .sty theme file is applied to new content in that page, by default. Similarly, if you select a theme for a chart, which uses the .sty file, then when you convert to a page, the associated .css file is used as the default page theme.

You can develop your own theme using the WebFOCUS text editor and then access it in WebFOCUS Designer. You can customize the .sty theme file used for charts and reports by specifying a set of default property values in it. For information on the properties that you can use in the theme to style a chart, see the Creating HTML5 Charts With WebFOCUS Language PDF.

Tip: You can use the code from an existing theme as a model when creating a new theme.

Note: Charts and reports created for use on pages can use a transparent background to allow the defined background color of the page containers to show through. Since the themes used for charts and reports (.sty files) can be associated with themes for pages (.css files), you can coordinate the background, text, and element colors used in both themes to create content with unified styling. At design time, the page theme associated with the chart or report theme is used for the canvas background. This is for visibility purposes only, and shows how the chart or report will appear when added to a page with the associated theme. The stand-alone chart or report does not include this background.

If a chart or report is run stand-alone instead of being added to a page, the run-time view displays a white background only. This means that if, in order to display on a dark colored page, the font color in the selected theme is defined as white and uses a transparent chart background, then the text will not be visible on the white preview background. An example of such a theme is the Midnight theme, provided as one of the default themes in the Global Resources. To view the white text, build your chart or report on the canvas, add it to a page container with a dark background, or change the chart background color from the Format tab. Note that a non-transparent chart background is layered in front of the panel background when the chart is part of a page.

Procedure: How to Add a Theme to a Chart

You can add a theme to a chart to color the background and components of your chart. If the chart is in a page, the default theme is the one used in the page. If the content is stand-alone, so that there is no page from which to inherit the theme, the default theme is called Designer 2018.

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data.

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

    If you start creating content without changing the theme, the default theme is used, as shown in the following image.

    Chart with default theme
  3. On the Format tab, with the General option selected from the quick access menu, in the Theme section, open the Theme drop-down menu.

    A list of available themes is displayed. As shown in the following image, you can choose from the Designer 2018, Light, Midnight, and Vivid themes that are included with WebFOCUS, a custom theme added to the Global Resources area, such as the themes Alex's Theme, Custom Theme, or MyTheme shown in the image, or click Custom to select a legacy theme or a theme saved to a workspace folder.

  4. Select another theme from the list (for example, Light) to change the theme.

    The color of the background and chart components changes based on the selected theme, as shown in the following image.

    Stacked bar chart with Light theme
  5. Click Convert to page on the Visualization toolbar to transform the chart into a page and move it into a container.

    The visualization transforms from a single content item into a page. Notice that the page adopts the theme that was used for the original content item. Additionally, the content item now has a theme of Inherit Page Theme, so that if you change the theme of the page, the theme of the content item changes along with it.

  6. Add fields to the new chart to create a second content item. Notice that it also initially uses the same theme as the page.
  7. Click the page toolbar or select the Visualization item from the outline to select the entire visualization.
  8. Click the Format tab select a different theme from the Theme drop-down menu, for example, Midnight.

    Notice that the theme of both content items have also changed to match the page, since they have a theme setting of Inherit Page Theme.

  9. Select one of the items on the page and, on the Format tab, with the General area selected, change the theme.

    The content item whose theme you explicitly set has changed, while the second item, for which a theme was not explicitly selected, still uses the theme used for the page, as shown in the following image.


    Page using midnight theme

Adding Color to Charts

How to:

By adding color to your chart components, you can change the way information is perceived and plays a large role in the effectiveness of your chart.

Color adds contrast to your charts, giving you an advantage in presenting unique, well-balanced content. You can use color to highlight a specific aspect or outcome on your chart. WebFOCUS Designer provides a color picker to add color and style your chart.

You can access the color picker in two primary ways: on the Format tab and at the top of the canvas when formatting headers and footers. Using these options, you can change the color of different components to style your chart. You can indicate color values and ranges to highlight data. You can color a chart component (for example, a header or axis), text, or even add colored lines to accentuate the background grid of your data. You can also change the theme, which changes the color palette and background of your chart.

The following image shows an example of color options that display on the Format tab (with the palette exposed), which you will also see in other areas where color formatting is supported:

The following image shows the options that display at the top of the canvas (with the palette exposed) when working with headers and footers.

Color palette accessed from header styling toolbar

Note: When specifying a theme, you can use the default or specify another one. The colors stored for the theme are part of the underlying .css or .sty file, which contains the color schemes.

In WebFOCUS Designer, the color picker supports a colorspace and a palette-based approach, as shown in the following image.

You can access the color picker from any of the sections on the Format tab. You can also access the color picker when working with headers and footers. When you access the color picker, the color picker displays the Palette tab, by default. From this tab, you can select from up to 20 pre-defined color options. You can also select the No Fill option, which displays the selected content as transparent. This is particularly useful in cases where you might want to prevent (or hide) the display of information.

The More tab allows you to choose a custom color by interacting with a hue wheel and the color value field, as shown in the following image.

You can specify an exact color code (hexadecimal or HTML) by entering it in the color value field located at the top of this tab, and also specify transparency by using the transparency slider.

Note: When a custom color is selected and you click OK, the color is automatically added to the Custom Colors section in the Palette tab.

You can also set a color range for a measure in your chart. This allows you to specify hues or ranges of color for use in your chart. In cases where Theme is not selected, the color specification overrides what is available in the theme. The color that you select dictates the legend, which in turn displays the various chart components, based on the colors and measurements specified.

To change the color scale options, right-click a measure in the Color bucket and select Set color ranges, as shown in the following image.

This invokes a new dialog box, Set Color Ranges, where you can select a color range for your chart, as shown in the following image.

When you make a selection, you can override the color schemes that are available from the theme of your chart. Theme is selected, by default. You can select a different color range, such as Green or Red/Orange, from the list of options, which gives you more control over how color is used in your chart to create contrasts between various aspects. For example, if your chart displays different temperature values using a measure in the Color bucket, you may wish to use the Red/White/Blue option to intuitively show higher temperature values in red and lower ones in blue

If you change the color range to something other than Theme, it is written as inline styling in the .fex file. Inline styling always overrides what is in the StyleSheet because it is listed after it in the .fex file. In this case, the last setting indicates which styling takes precedence. When the color range is set back to Theme, the inline styling is removed so the behavior returns to the theme's settings.

This behavior does not affect your ability to change themes on the Format tab. However, if you change the theme with an inline setting in place, the settings of the Theme will still be overridden by the inline settings and the color scale in the legend will not be affected. The current procedure only respects the current theme's settings if the color range setting is set to Theme.

In the Set Color Ranges dialog box, you can also select Continuous or Discrete to determine how the color scale is generated. When Continuous is selected, the color scale is a gradient, and each color in the color scale represents a different value. When Discrete is selected, the color scale is divided into segments. Each color in the color scale represents a range of values.

The following image shows a matrix marker chart that uses the Red/Yellow/Green color scale with the Continuous option selected.


Matrix marker chart with continuous color scale

The Continuous option creates a more granular color scale, allowing you to see slight differences between similarly colored chart components.

The following image shows the same chart, with the Discrete option selected.

Matrix marker chart with discrete color scale

The Discrete option creates identifiable groups based on sections of the color scale.

When using the Theme color scale option, the default color scale type and number of segments in discrete mode are dependent on the values of the colorScale property in the theme that you are using. For example, if 5 colors are listed for the colorScale property in StyleSheet being used as your theme, then 5 colors display in the color scale when the discrete option is used.

Procedure: How to Add Color to Your Chart

To add color to your chart:

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data.

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

  3. Add one or more measures and dimensions to your chart.
  4. On the Format tab, expand the quick access menu and then click Axis from the drop-down list, as shown in the following image.
  5. In the Font section, click the color sample.

    The color picker displays, as shown in the following image.

    The text color you select is displayed for the values on the specified axis (for example, x-axis), as shown in the following image.

Procedure: How to Change the Color Scale in a Chart

  1. Open WebFOCUS Designer. On the WebFOCUS Hub, click the plus menu and then click Create Visualizations, or, on the WebFOCUS Home Page, click Visualize Data..

    WebFOCUS Designer opens in a new browser tab.

  2. Select a workspace and a data source available from that workspace.

    Once you select a data source, WebFOCUS Designer loads with options to create a single content item.

  3. Add one or more measures and dimensions to your chart.
  4. Add a measure to the Color bucket.

    Many different chart types generate a color scale from the Color bucket. Exceptions include the ring pie and data grid chart types.

  5. Right-click the measure field in the Color bucket and click Set color ranges.
    The Set Color Ranges dialog box displays, as shown in the following image.

    Set Color Ranges dialog box
  6. From the list of colors, select a color range, as shown in the following image.

    List of color ranges in the Set Color Ranges dialog box
  7. Optionally, select Continuous or Discrete to determine how the color scale is generated.

    When Continuous is selected, the color scale is a gradient, and each color in the color scale represents a different value.

    When Discrete is selected, the color scale is divided into segments. Each color in the color scale represents a range of values.

  8. Click OK.
    Note the change in the color and hues in your chart.

Changing the Size of Charts and Risers

By default, when you create a chart, it fills the frame in which it is run, and risers and other sections within the chart are sized accordingly. This makes the chart flexible, allowing it to run in large and small containers alike without sacrificing the appearance and legibility of the chart. This automatic sizing also means that you do not need to manually set any size properties for the chart.

However, you also have the option to set a consistent size for the chart, if you prefer. You can also determine the width of bars in a bar chart as a percentage of the riser area, and set the width of risers in a bar, area, or line chart, based on the font size of the ordinal axis, or on an exact value that you specify.

You can set a static height and width for a chart, so that it remains the same size no matter where it is loaded. This can be useful, for example, if you want to add the chart to a PowerPoint presentation or PDF, and want to leave room for other content on each slide or page. To set the size of your chart, on the Format tab, select General from the quick access menu. In the Other section, notice that the Fit to container option is set to Automatic, by default, so that the chart automatically resizes to fill its container. To specify a size for the chart, change this setting to Manual, and then provide a width and height for the chart, in pixels. As you set these dimensions, you can select the Lock Aspect Ratio check box so that as you change the width or height, the other dimension changes as well, to maintain the same aspect ratio.

In bar, area, and line charts, values are represented by the height of a bar, area, or line at different points along the ordinal axis, which displays different dimension value labels. These points are generically called risers. You can set the width of these risers to fill the width of the chart, resize them based on the font size of the ordinal axis labels, or resize them manually by specifying a number of pixels.

To access these options, on the Format tab, select Series, and leave All series selected. By default, the riser width automatically adjusts based on the width of the chart to fill it evenly. In the Shape section, change the Riser Width property to Tie to ordinal font size to have the riser width increase with the size of the dimension labels on the ordinal axis of the chart. This is most useful in charts that are oriented horizontally, so the risers and labels occupy roughly the same amount of vertical space. To change the font size, on the Format tab, select Axis from the quick access menu and then select X Axis from the axis drop-down menu. The Labels section includes the options to change the font size of the axis labels. In the following image, the font size was increased to 18, and, since the Riser Width property was set to Tie to ordinal font size, the width of each riser has also increased accordingly.


Horizontal bar chart with riser width set to font

You can also set the width of each riser in pixels. Set the Riser Width property to Manual and then use the slider to set the riser width. If the riser width is too wide to fit all risers in the chart frame, a scrollbar is added.

In bar charts, you can also set the percentage of the riser area that each bar or set of side-by-side bars occupies, using the slider for the Riser Spacing property. Reducing this value increases the amount of space between bars.