Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/glacials/splits-io. a speedrunning data store and analysis engine splits.io
Something went wrong. Try again.
910 B 36 lines
at gold
12345678910111213141516171819202122232425262728293031323334353637$ -> if $("#run-duration-graph").length is 0 or gon.run.program isnt "livesplit" return
color_styles = ["rgba(14, 144, 210, 1)"]
duration_data = gon.run.history.map((time) -> return time) duration_data.unshift "Run Length" c3.generate({ bindto: "#run-duration-graph", title: { text: "Run Duration Over Time" } data: { columns: [duration_data], }, color: { pattern: color_styles }, axis: { x: { type: "category", categories: index + 1 for split, index in gon.run.history, tick: { culling: true, multiline: false } }, y: { label: { text: "Duration of Run", position: "outer-middle" }, tick: { format: (d) -> moment.utc(moment.duration(d, "seconds").asMilliseconds()).format("H:mm:ss") } } }, legend: { hide: true } })