[JS] $("#container").ejChart( { //... loaded:"chartLoaded", }); function chartLoaded(sender) { var seriesElement = $("#container_svg_SeriesGroup_0"); var columnWidth = 10; for (var i = 0; i < seriesElement.children().length; i++) { var childElement = seriesElement.children()[i]; var id = childElement.getAttribute("id") if (childElement.tagName == "rect" && id.indexOf("Point") > -1) { var width = parseInt(childElement.getAttribute("width")); var x = parseInt(childElement.getAttribute("x")); childElement.setAttribute("width", columnWidth); childElement.setAttribute("x", x + (width / 2) - (columnWidth / 2)); } } } |
[JS] $("#container").ejChart({ //... series: [{ isTransposed:true, }], }); |
[JS] $("#container").ejChart({ //... series: [{ isTransposed:true, border: {width: 10} }], }); |