﻿$(document).ready(function () {
var dataSource = #dataSource#;
Globalize.culture("de-DE");	
	//SÄULENDIAGRAMM	 
	$("#id#").dxChart({
		title: "#title#",
		dataSource: {
            store: {
				data: dataSource,
				type: "array"#keyfield#
			}
		}, 
		rotated: #rotated#,
		series: {
			argumentField: "#argumentfield#",
			valueField: "#valuefield#",
			name: "#valuefield#",
			type: "bar",
			label: {
				visible: #showlabel#,
				format: 'fixedPoint',
				precision: #precision#},			
				color: '#valuecolor#'
		},
		valueAxis: {
			label: {
				visible: #showaxis#,
				format: 'fixedPoint',
				precision: #precision#			
			}
		},
		onPointClick: function(e){
			var prefix="#prefix#";
			if (prefix != ""){
			  window.location.href = encodeURIComponent(prefix + "_" + e.target.argument) + ".html";
			}
		}
	});
})