Skip to content

Latest commit

 

History

History
103 lines (79 loc) · 7.49 KB

_macro-options.md

File metadata and controls

103 lines (79 loc) · 7.49 KB
Name Type Required Description
chartType string true The type of chart to render (e.g., 'line', 'bar', etc.).
theme string true The theme to apply to the chart. Either primary or alternate.
title string true The main title of the chart.
subtitle string true A subtitle that appears under the main title.
uuid string true A unique identifier for the chart instance.
caption string false A caption providing additional context for the chart.
description string false A textual description of the chart for screen readers.
download object false Object for (download)[#download] options.
useStackedLayout boolean false Determines whether the chart should use a stacked layout. It is useful only for bar charts.
config object true The full configuration object passed to Highcharts, defining axes, series, etc.

Download

Property Type Required Description
title string false The title displayed above the download options.
itemsList array false An array of items available for download, each described by a (DownloadItem)[#DownloadItem].

DownloadItem

Property Type Required Description
text string true The label or description of the downloadable item.
url string true The URL to the downloadable resource.

Config

Name Type Required Description
chart object true Defines the chart's overall behavior and appearance.
legend object false Controls the appearance and behavior of the legend.
yAxis object true Defines the vertical axis y-axis properties, including labels and title.
xAxis object true Defines the horizontal axis x-axis properties, including categories and title.
series array true The data series to be plotted, including labels and values.

Chart

Name Type Required Description
type string true The type of chart (e.g., 'line', 'bar', 'column').

Legend

Name Type Required Description
enabled boolean false Whether the legend is displayed. Defaults to true.
align string false Horizontal alignment of the legend (left, center, right).
verticalAlign string false Vertical alignment of the legend (top, middle, bottom).
layout string false Legend layout (horizontal or vertical).

Y_Axis

Name Type Required Description
title object true Defines the title of the y-axis.
reversed boolean false Sets the axis so that the highest number is closest to the origin.
labels object false The axis labels show the number or category for each tick.

X_Axis

Name Type Required Description
title object true Defines the title of the x-axis.
categories array false Labels for each tick mark along the x-axis.
reversed boolean false Sets the axis so that the highest number is closest to the origin.
type string false The type of axis. Can be one of linear, logarithmic, datetime or category.
labels object false The axis labels show the number or category for each tick.
tickInterval number false The interval of the tick marks in axis units

Title

Name Type Required Description
text string true The title text displayed on the y-axis or x-axis.

Labels

Name Type Required Description
format string false A format string for the axis label.

Series

Name Type Required Description
name string true The name of the series.
data array true The data values for the series. Each value corresponds to a category on the x-axis.
dataLabels object false Configuration options for displaying labels on the data points.
tooltip object false Customization options for the (tooltip)[#tooltip] displayed when hovering over data points.

DataLabel

Name Type Required Description
enabled boolean false Whether the DataLabel is displayed. Defaults to false.

Tooltip

Name Type Required Description
valueSuffix string false A string to append to each tooltip value.