﻿$(document).ready(function () {
var dataSource = #datasource#;
	Globalize.culture("de-DE");
	$("#id#").dxChart({
	dataSource: {
        store: {
			data: dataSource,
			type: "array"#keyfield#
		}
	}, 
    commonSeriesSettings: {
        argumentField: "#argumentfield#",
        type: "bar",
        hoverMode: "allArgumentPoints",
        selectionMode: "allArgumentPoints",
        label: {
            visible: #showlabel#,
            format: "fixedPoint",
            precision: #precision#
        }
    },
	rotated: #rotated#,
    series: #columns#,
    title: "#title#",
		valueAxis: {
			label: {
				visible: #showaxis#,
				format: 'fixedPoint',
				precision: #precision#			
			}
		},
    legend: {
        verticalAlignment: "bottom",
        horizontalAlignment: "center"
    },
    onPointClick: function (e) {
		var prefix="#prefix#";
		if (prefix != ""){
			window.location.href = encodeURIComponent(prefix + "_" + e.target.argument) + ".html";
		}
    }
});
})
