Caption and Sub-caption
The caption is the title (or heading) of a chart. It helps you understand the context of the chart. Whereas the sub-caption is the byline that appears right below the caption and offers additional information regarding the subject matter of the chart.
Refer to the image below:
Caption Position
FusionTime allows you to configure various aspects of the caption of a chart, including their texts and positions (with respect to the chart canvas).
Refer to the code below:
caption: {
text: "Online Sales of a SuperStore";
position: "right"; // Default = left. Other values = right, center
}
The default value of the
position
attribute forcaption
object is left.
The chart will look as shown below:
Sub-caption Position
FusionTime allows you to configure the sub-caption of a chart as well, including its text and position (with respect to the chart canvas).
Refer to the code below:
subcaption: {
text: "2011 - 2014";
position: "right"; // Default = left. Other values = right, center
}
The default value of the
position
attribute forsubCaption
object is left.
The chart will look as shown below: