I'm currently working on a dc.js barchart that is working perfectly, except on one thing:
the X Axis represents several dates, but in a same day if an event has a bigger associated value than the previous one, it overlaps it.
Here is an example:

For example: on the 22th of February , it is possible to see that an orange bar is hidden by a blue one. So, is there a method that fixes this automatically? I've been looking through the Dc documentation, but i haven't found anything.
EDIT:
I'm posting the piece of code for the chart, so you can see what scales and methods i am using.
chart
.width(680)
.height(380)
.x(d3.scaleTime().domain([firstDate,lastDate]))
.xUnits(function(){return Object.keys(data.data).length;})
.brushOn(false)
.xAxisLabel('Aulas')
.yAxisLabel('presencas')
.dimension(DimensionHoras)
.barPadding(0.5)
.outerPadding(1)
.group(sumGroup)
.centerBar(true)
.legend(dc.legend().legendText(function(d, i) { return console.log(d);}))
.on('pretransition', function(chart) {
chart.selectAll("rect.bar").on("click", function (d) {
console.log(d);
var yy = data.data.filter(function(h){
return h.data_hora_ini == d.x
});
jQuery.each(yy, function(i, val){
graficoAssiduidade(val.data_hora_ini, val.cd_curso, val.uc_cod, "Data: " + val.dataSemFormato + ", " + val.hor_nome_turno);
});
chart.filter(null)
.filter(d.data.key)
.redrawGroup();
});
});
chart.on("renderlet", function(chart){
chart.selectAll("rect.bar").style("fill", function(d){
var filtro = data.data.filter(function(h){return h.data_hora_ini == d.x});
// console.log(d);
if(filtro[0].hor_nome_turno == "PL1")
return "#6BAED6";
else if(filtro[0].hor_nome_turno == "PL2")
return "orange";
else if(filtro[0].hor_nome_turno == "PL3")
return "yellow";
else if(filtro[0].hor_nome_turno == "TP1")
return "lightgreen";
});
});