I have set up the Gnatt Chart like this
<chart:ganttChart id="ganttChart"
additionalSegmentFields="task"
balloonDateFormat="JJ:NN"
brightnessStep="7"
categoryField="category"
colorField="color"
columnWidth="0.5"
endDateField="end"
height="auto"
marginRight="70"
marginLeft="70"
period="YEARS"
rotate="true"
segmentsField="segments"
startDate="2015-01-01"
startDateField="start"
theme="LIGHT"
width="100%">
<chart:graph balloonText="<strong>[[task]]</strong>: [[open]] - [[value]]"
fillAlphas="1"
lineAlpha="1"
lineColor="WHITE"></chart:graph>
<chart:valueAxis maximum="7"
minimum="1"
type="DATE"></chart:valueAxis>
<chart:valueScrollbar autoGridCount="true"
color="BLACK"></chart:valueScrollbar>
<chart:chartCursor cursorAlpha="0"
cursorColor="#55bb76"
fullWidth="true"
valueBalloonsEnabled="false"
valueLineAlpha="0.5"
valueLineBalloonEnabled="true"
valueLineEnabled="true"
valueZoomable="true"
zoomable="false"></chart:chartCursor>
<chart:categoryAxis axisColor="#DADADA"
gridAlpha="0.07"
startOnAxis="true">
<chart:guides>
<chart:guide category="2016"
dashLength="2"
fillAlpha="0.2"
fillColor="#CC0000"
inside="true"
label="fines for speeding increased"
labelRotation="90"
toCategory="2017"></chart:guide>
<chart:guide category="2018"
dashLength="2"
inside="true"
label="motorcycle fee introduced"
labelRotation="90"
lineAlpha="1"
lineColor="#CC0000"></chart:guide>
</chart:guides>
</chart:categoryAxis>
<chart:export></chart:export>
</chart:ganttChart>
And used the data in the example:
List<MapDataItem> segments = new ArrayList<>();
segments.add(new MapDataItem(ParamsMap.of("start", "2016-01-01 10:00:00",
"end", "2016-01-14 11:00:00", "task", "Gathering requirements", "color", "#b9783f")));
segments.add(new MapDataItem(ParamsMap.of("start", "2016-01-16 10:00:00",
"end", "2016-01-27 12:00:00", "task", "Producing specifications")));
segments.add(new MapDataItem(ParamsMap.of("start", "2016-02-05 8:05:00",
"end", "2016-04-18 10:55:00", "task", "Development")));
segments.add(new MapDataItem(ParamsMap.of("start", "2016-04-18 7:10:00",
"end", "2016-04-30 9:10:00", "task", "Testing and QA")));
dataProvider.addItem(new MapDataItem(ParamsMap.of("category", "Sjåfør #1", "segments", segments)));
But I don’t see any guides?