Charts can be created by clicking Insert in the Toolbar and dragging a new chart onto the canvas. You can also click the chart icon in any empty section.
Click on any chart on the canvas to select it. Like other elements, charts are highlighted in blue under the Layers tab once they have been selected.
Once selected, a chart can be customized by selecting the Chart tab on the right of the page, where the following functionality is available:
In the Setup section, under the Chart tab, you can assign the following properties:
Because the margin sets the space between the chart axes and the edge of the container, ensure you add enough margin for any axis ticks or labels. If needed, use options in the Axes section such as Limit Tick Width, Limit Tick Characters, and Rotate Ticks to constrain the size of tick and label text.
In the Chart Type section, you can select from the following options. Use the links to read documentation for each chart type.
In the Dataset section, you can select the dataset for your chart element, which contains the data that you wish to display on the chart. In order to add a dataset to a chart element, you must first add a dataset to your project. This can be done by selecting New Dataset in the Project tab.
If you are on the Pro plan, you can upload your own files (in csv format) to use as datasets, by clicking New Dataset and then Upload Dataset.
After you have selected a dataset, you can optionally enable the Prefilter Dataset switch, which lets you filter the data that is supplied to the chart. The filter is a "prefilter" because it is applied before the visualization is generated; end users are unable to adjust the filter dynamically.
Next, the Data Format is displayed. In most Mappica charts, you can select either Wide Data or Long Data, though in some charts only one option is available. The data format should reflect the structure of the selected dataset. It also determines the fields that will need to be set for the chart.
Finally, choose the Fields that should be used to construct the chart. The exact fields that will need to be specified depend on the selected chart type and whether wide data or long data is selected. More detailed information is included in the pages for each chart type, linked to in the Chart Types section.
You can establish connections to filter elements under the Chart tab, in the Connections section, by making a selection under Filter.
A Filter element can be styled as a series of checkboxes, a dropdown menu, or a slider. Values from the specified Filter Field appear as individual checkboxes, dropdown menu items, or (for numeric filtering) slider values. A given chart can be connected to one or more filters, and the same filter can be connected to multiple charts or other elements.
When a filter element is connected to a chart, it dynamically controls the dataset records displayed in the chart based on the user's selections. Filters can also adjust the chart's axis range dynamically, provided the Minimum and Maximum Range values of the axis are set to auto. For example, in the case below, a slider filter is connected to the same dataset field as the chart's vertical axis. As the user adjusts the slider, data points are added or removed from the chart, and the vertical axis shifts accordingly.
If your chart uses Wide Data format, use a Selector element instead of a filter to dynamically control the chart color series.
Typically, the Filter element you connect to will use the same Dataset as the chart element. However, this is not strictly necessary. If the filter and chart elements use different datasets, the filter will only affect the chart if the chart's dataset contains a field (column) with the same name as the Filter Field in the filter element. In this case, the values in these fields must at least partially align for the filter to take effect. Any non-matching values between the fields will be ignored during filtering.
If you are building a chart using Wide Data format, you can establish a connection to a selector element under the Chart tab, in the Connections section, by making a selection under Selector.
Selector elements control which series fields are displayed in connected elements that use a wide data format. Selectors can be displayed as checkboxes, dropdowns, or legends. While a chart can be connected to only one selector, a single selector can be connected to multiple charts and other elements that use series fields. Once connected, the selector element dynamically controls the dataset fields (columns) passed to the chart as series fields based on user selections.
In the Sorting section under the Chart tab, you can control how data is ordered in your chart. Different chart types offer various sorting options:
For charts with categorical data on the horizontal axis, you can sort by:
For charts displaying multiple data series, you can control the order in which series appear in legends and stacked elements.
The Axes section under the Chart tab allows you to customize the appearance and behavior of your chart's horizontal and vertical axes.
Color formatting, defined in the Colors section under the Chart tab, is specific to the selected Chart Type and Data Format.
For charts that use Wide Data format, separate colors can be assigned to each of the selected series.
For charts that use Long Data format, you can specify a Color Field, which can be a text field or numeric (number, currency, percent, or measurement) field from the selected dataset. If you select a text field, each unique value in that field will be treated as a category and can be assigned a color. For numeric fields, you can configure a Color Gradient, Domain Minimum and Maximum, and Color Scale.
For certain chart types where using distinct color series is not essential, a Fixed color formatting option is available alongside the Variable formatting options described above. The option applies a single color to all chart elements and is supported for bar charts, column charts, arrow plots, and scatter plots.
A Settings section under the Chart tab is available for Line Charts, Area Charts, Dot Plots, Arrow Plots, Histograms, and Pie and Donut Charts. Settings options vary depending on the selected chart type; these options are listed on each individual chart page.
In dot plots, it is possible to toggle on Add Bar Fields, which draws bars between a Start Field and an End Field. When this feature is enabled, you can also select a Bar Color, Bar Width, Bar Start Symbol, and Bar End Symbol.
In line charts, it is possible to toggle on Add Range Fields, which draws ranges between two points (a "High value" and a "Low value") and associates each range with a line series on the chart. This is typically used to add visual context to the variability or uncertainty associated with a particular data series, through statistical measures such as confidence intervals and prediction intervals.
The range field is always assigned the color of the line series that it is associated with. You can choose the Opacity of the shaded ranges on the chart (with the default set to 30%).
If the line chart uses Wide Data format, you will need to specify separate dataset fields (columns) for the high and low range values for each line series. For example, assuming series "A" and "B" are added as lines in the dataset, you will need to select columns "A High" and "A Low" and associate them with series "A"; you will then need to select columns "B High" and "B Low" and associate them with series "B".
If the line chart uses Long Data format, you only need to specify one high column and one low column for all series. Next, confirm the line series that should be assigned a range.
In the Annotations section under the Chart tab, you can add various helpful annotations to a chart. The options vary by chart type:
Display Bar Totals: Display the value of each bar directly on the chart. By default, annotations appear inside the bars, but you can select Total Outside Bars to place them outside. Use the Hidden Annotation Values setting to hide annotations for bars with values within a specified range.
Add Data Point: Add a dot annotation to represent a calculated value based on all items in a stack. Choose the Data Point Operation to calculate the "Sum," "Average," or "Median" of the stack's values. Apply a color to the dot using the Data Point Color setting.
Annotations can be added by clicking the Add Annotation button. The position of each annotation is specified with the "X Location" and "Y Location" fields. If the chart's horizontal axis uses a date field, you can specify the X location in YYYY/MM/DD or YYYY format.
The following items can be added to each annotation:
Add Data Line: Add a dashed line annotation to represent a calculated value based on items in a histogram series. Choose the Data Line Operation to calculate the "Average" or "Median" of the histogram values. The data line will automatically be included in any legend connected to the histogram.
Tooltips can be enabled by selecting the Chart tab, navigating to the Tooltip section, and selecting Display Tooltip. These are automatically configured to display the fields selected in the chart.