define('common/mod/charts/lib/parallelChart',
    ['d3', 'nvd3'],
    function (d3, nv) {

        return function (element, data) {

            var parallelChart = this,
                chart;

            nv.addGraph(function () {

                chart = nv.models
                    .parallelCoordinates()
                    .dimensions(data.dimension);

                d3.select(element).append("svg")
                    .datum(data.datum)
                    .call(chart);

                nv.utils.windowResize(parallelChart.update);

                return chart;
            });

         
            parallelChart.Update = function () {
                // parallelCoordinate chart does not have an update function
                //chart.update();
            };
        };
    }
);
