All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.jquery.chart-close.ftl Maven / Gradle / Ivy

There is a newer version: 5.0.4
Show newest version
<#--
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
-->
<#assign escapedOptionId="${parameters.id?string?replace('.', '_')}">

  <#include "/${parameters.templateDir}/jquery/base.ftl" />
  <#include "/${parameters.templateDir}/jquery/interactive.ftl" />
  <#include "/${parameters.templateDir}/jquery/topics.ftl" />
  <#include "/${parameters.templateDir}/jquery/action.ftl" />
  <#include "/${parameters.templateDir}/jquery/container.ftl" />

options_${escapedOptionId?html}.xaxis = {};
<#if parameters.xaxisPosition?if_exists != "">
options_${escapedOptionId?html}.xaxis.position = "${parameters.xaxisPosition?html}";

<#if parameters.xaxisMode?if_exists == "time">
options_${escapedOptionId?html}.xaxis.mode = "time";
	<#if parameters.xaxisTimeformat?if_exists != "">
options_${escapedOptionId?html}.xaxis.timeformat = "${parameters.xaxisTimeformat?html}";
	

<#if parameters.xaxisColor?if_exists != "">
options_${escapedOptionId?html}.xaxis.color = "${parameters.xaxisColor?html}";

<#if parameters.xaxisTick?if_exists != "">
options_${escapedOptionId?html}.xaxis.ticks = ${parameters.xaxisTick?html};

<#if parameters.xaxisTickSize?if_exists != "">
options_${escapedOptionId?html}.xaxis.tickSize = ${parameters.xaxisTickSize?html};

<#if parameters.xaxisTickDecimals?if_exists != "">
options_${escapedOptionId?html}.xaxis.tickDecimals = ${parameters.xaxisTickDecimals?html};

<#if parameters.xaxisTickColor?if_exists != "">
options_${escapedOptionId?html}.xaxis.tickColor = "${parameters.xaxisTickColor?html}";

<#if parameters.xaxisMin?if_exists != "">
options_${escapedOptionId?html}.xaxis.min = ${parameters.xaxisMin?html};

<#if parameters.xaxisMax?if_exists != "">
options_${escapedOptionId?html}.xaxis.max = ${parameters.xaxisMax?html};

<#if parameters.xaxisLabel?if_exists != "">
options_${escapedOptionId?html}.xaxis.axisLabel = "${parameters.xaxisLabel?html}";
options_${escapedOptionId?html}.xaxis.axisLabelUseCanvas = true;
	<#if parameters.xaxisLabelFontSizePixels??>
options_${escapedOptionId?html}.xaxis.axisLabelFontSizePixels = ${parameters.xaxisLabelFontSizePixels?c};
	
	<#if parameters.xaxisLabelFontFamily?if_exists != "">
options_${escapedOptionId?html}.xaxis.axisLabelFontFamily = "${parameters.xaxisLabelFontFamily?html}";
	

options_${escapedOptionId?html}.yaxis = {};
<#if parameters.yaxisPosition?if_exists != "">
options_${escapedOptionId?html}.yaxis.position = "${parameters.yaxisPosition?html}";

<#if parameters.yaxisMode?if_exists == "time">
options_${escapedOptionId?html}.yaxis.mode = "time";
	<#if parameters.yaxisTimeformat?if_exists != "">
options_${escapedOptionId?html}.yaxis.timeformat = "${parameters.yaxisTimeformat?html}";
	

<#if parameters.yaxisColor?if_exists != "">
options_${escapedOptionId?html}.yaxis.color = "${parameters.yaxisColor?html}";

<#if parameters.yaxisTick??>
options_${escapedOptionId?html}.yaxis.ticks = ${parameters.yaxisTick?string};

<#if parameters.yaxisTickSize??>
options_${escapedOptionId?html}.yaxis.tickSize = ${parameters.yaxisTickSize?string};

<#if parameters.yaxisTickDecimals??>
options_${escapedOptionId?html}.yaxis.tickDecimals = ${parameters.yaxisTickDecimals?string};

<#if parameters.yaxisTickColor?if_exists != "">
options_${escapedOptionId?html}.yaxis.tickColor = "${parameters.yaxisTickColor?html}";

<#if parameters.yaxisMin??>
options_${escapedOptionId?html}.yaxis.min = ${parameters.yaxisMin?string};

<#if parameters.yaxisMax??>
options_${escapedOptionId?html}.yaxis.max = ${parameters.yaxisMax?string};

<#if parameters.yaxisLabel?if_exists != "">
options_${escapedOptionId?html}.yaxis.axisLabel = "${parameters.yaxisLabel?html}";
options_${escapedOptionId?html}.yaxis.axisLabelUseCanvas = true;
	<#if parameters.yaxisLabelFontSizePixels??>
options_${escapedOptionId?html}.yaxis.axisLabelFontSizePixels = ${parameters.yaxisLabelFontSizePixels?c};
	
	<#if parameters.yaxisLabelFontFamily?if_exists != "">
options_${escapedOptionId?html}.yaxis.axisLabelFontFamily = "${parameters.yaxisLabelFontFamily?html}";
	

options_${escapedOptionId?html}.legend = {};
<#if parameters.legendShow?exists>
options_${escapedOptionId?html}.legend.show = ${parameters.legendShow?string};

<#if parameters.legendPosition?if_exists != "">
options_${escapedOptionId?html}.legend.position = "${parameters.legendPosition?html}";

<#if parameters.legendLabelBoxBorderColor?if_exists != "">
options_${escapedOptionId?html}.legend.labelBoxBorderColor = "${parameters.legendLabelBoxBorderColor?html}";

<#if parameters.legendBackgroundColor?if_exists != "">
options_${escapedOptionId?html}.legend.backgroundColor = "${parameters.legendBackgroundColor?html}";

<#if parameters.onHoverTopics?if_exists != "">
options_${escapedOptionId?html}.onhover = "${parameters.onHoverTopics?html}";

<#if parameters.crosshair?default(false)>
	options_${escapedOptionId?html}.crosshair = {};
	<#if parameters.crosshairMode?if_exists != "">
	options_${escapedOptionId?html}.crosshair.mode = "${parameters.crosshairMode?html}";
	
	<#if parameters.crosshairColor?if_exists != "">
	options_${escapedOptionId?html}.crosshair.color = "${parameters.crosshairColor?html}";
	
  	<#if parameters.crosshairLineWidth??>
	options_${escapedOptionId?html}.crosshair.lineWidth = ${parameters.crosshairLineWidth?string};
  	

<#if parameters.pie?default(false)>
	if(options_${escapedOptionId?html}.series){
	options_${escapedOptionId?html}.series = $.extend(options_${escapedOptionId?html}.series , { pie: { show: true }});
	} else {
	options_${escapedOptionId?html}.series = { pie: { show: true }};
	}
	<#if parameters.pieRadius??>
		options_${escapedOptionId?html}.series.pie.radius = ${parameters.pieRadius?string};
	
	<#if parameters.pieInnerRadius??>
		options_${escapedOptionId?html}.series.pie.innerRadius = ${parameters.pieInnerRadius?string};
	
	<#if parameters.pieLabel?default(false)>
		options_${escapedOptionId?html}.series.pie.label = { show: true };
		<#if parameters.pieLabelRadius??>
			options_${escapedOptionId?html}.series.pie.label.radius = ${parameters.pieLabelRadius?string};
		
		<#if parameters.pieLabelFormatter?if_exists != "">
			options_${escapedOptionId?html}.series.pie.label.formatter = ${parameters.pieLabelFormatter?html};
		
	  	<#if parameters.pieLabelBackgroundColor?? || parameters.pieLabelBackgroundOpacity??>
			options_${escapedOptionId?html}.series.pie.label.background = {};
		<#if parameters.pieLabelBackgroundColor?if_exists != "">
			options_${escapedOptionId?html}.series.pie.label.background.color = "${parameters.pieLabelBackgroundColor?html}";
		
		<#if parameters.pieLabelBackgroundOpacity??>
			options_${escapedOptionId?html}.series.pie.label.background.opacity = ${parameters.pieLabelBackgroundOpacity?string};
		
	  	
	

<#if parameters.autoResize?default(false)>
	options_${escapedOptionId?html}.autoresize = true;

	<#assign escapedId="${parameters.id?string?replace('.', '\\\\\\\\.')}">
	jQuery.struts2_jquery_chart.bind(jQuery('#${escapedId?html}'),options_${escapedOptionId?html});
 });





© 2015 - 2024 Weber Informatics LLC | Privacy Policy