Scatter Charts
Scatter charts contain multiple sets of data. A scatter chart models the data as individual points. Each data series (created with the addColumns()
method) is defined with a new instance of the MultiValueColumn
object, which takes an ID and a set of values. Follow these steps to configure your portlet to use scatter charts.
-
Import the chart taglib along with the
ScatterChartConfig
andMultiValueColumn
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_scatterChartConfig
as theconfig
attribute’s value:
Awesome! Now you know how to create scatter charts for your apps.