水平时间线转换

时间:2015-04-30 10:47:34

标签: javascript html css timeline

有人可以帮助我如何将此垂直时间轴转换为水平时间: http://jsfiddle.net/yinnette/XdQ5Y/

xAxis: { events:{ afterSetExtremes:function() { var minAxis = this.min, maxAxis = this.max, points = this.chart.series[0].points, min = points[0].y, max = points[0].y; $.each(points, function(i, p) { if(p.x >= minAxis && p.x <= maxAxis) { if(p.y > max) max = p.y; if(p.y < min) min = p.y; } }); $('#info').html('MIN: ' + min + ' MAX: ' + max); } }, type: 'datetime', minRange: 14 * 24 * 3600000 // fourteen days },

非常感谢!

1 个答案:

答案 0 :(得分:1)

如果你只需要从中取水平,你可以使用规则

.timeline{
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);/** Chrome & Safari **/
  -o-transform: rotate(-90deg); /** Opera **/
  -moz-transform: rotate(-90deg); /** Firefox **/
}

http://jsfiddle.net/XdQ5Y/348/

相关问题