Combination Charts
Combination charts have minor differences from other charts. In a combination chart, you must define the representation type of each data set: AREA
, AREA_SPLINE
, AREA_STEP
, BAR
, BUBBLE
, DONUT
, GAUGE
, LINE
, PIE
, SCATTER
, SPLINE
, or STEP
. Each data set in a combination chart is an instance of the TypedMultiValueColumn
object. Each object receives an ID, the representation type, and values for the data. Follow these steps to configure your portlet to use combination charts.
-
Import the chart taglib along with the
CombinationChartConfig
,MultiValueColumn
, andMultiValueColumn.Type
classes into your bundle’sinit.jsp
file: -
Add the following Java scriptlet to the top of your
view.jsp
: -
Add the
<chart>
taglib to theview.jsp
, passing the_combinationChartConfig
as theconfig
attribute’s value:
Awesome! Now you know how to create combination charts for your apps.