diff options
-rw-r--r-- | lib/postrunner/ChartView.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/postrunner/ChartView.rb b/lib/postrunner/ChartView.rb index badf73c..f3dad86 100644 --- a/lib/postrunner/ChartView.rb +++ b/lib/postrunner/ChartView.rb @@ -337,7 +337,7 @@ EOT #{chart[:colors] ? "color: \"#{chart[:colors]}\"," : ''} lines: { show: true#{chart[:id] == 'pace' ? '' : ', fill: true'} } } ], - { xaxis: { mode: "time" }, + { xaxis: { mode: "time", min: 0.0 }, grid: { markings: lap_marks, hoverable: true } EOT if chart[:id] == 'pace' @@ -417,7 +417,7 @@ EOT " fillColor: \"#{chart[:colors][index][0]}\", " + " fill: true, radius: 2 } }" end.join(', ') - s << "], { xaxis: { mode: \"time\" }, " + + s << "], { xaxis: { mode: \"time\", min: 0.0 }, " + (chart[:id] == 'gct_balance' ? gct_balance_yaxis(data_sets) : '') + " grid: { markings: lap_marks, hoverable: true } });\n" s << lap_mark_labels(chart_id, start_time) |