Step Charts
Step charts contain multiple sets of data. A step chart steps between the points of data, resembling steps. 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 step charts.
-
Import the chart taglib along with the
StepChartConfig
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_stepChartConfig
as theconfig
attribute’s value:
You can also use an area step chart if you prefer. An area step chart highlights the area covered by a step graph.
Awesome! Now you know how to create step charts for your apps.