* the JsonRenderer responsible for rendering the options
* @param markupId
* the DOM ID of the chart component.
*/
private void includeCalendarJavascript(final IHeaderResponse response, final JsonRenderer renderer, final String markupId) {
ContinuousCalendarOptions options = continuousCalendar.getOptions();
response.render(OnDomReadyHeaderItem.forScript(
MessageFormat.format(
"$({0}).continuousCalendar({1})", markupId, renderer.toJson(options)
)
));