to set alignment to edge of the chart simply set boundaryGap to true (echarts v.5)
boundaryGap
true
xAxis: { boundaryGap: false, /* other options */ }