d8ca0f0a by David LaPalomento

Label the bandwidth line

Make it easier to understand what the graph is showing.
1 parent bd7529ba
......@@ -292,7 +292,7 @@
.attr('transform', 'translate(0,' + height + ')')
.call(timeAxis);
// bandwidth axis
// bitrate axis
svg.append('g')
.attr('class', 'y axis')
.call(bitrateAxis)
......@@ -310,6 +310,12 @@
.attr('class', 'line bandwidth')
.attr('d', bandwidthLine);
svg.append('text')
.attr('transform', 'translate(' + x(x.range()[1]) + ', ' + y(data.bandwidth.slice(-1)[0].bandwidth) + ')')
.attr('x', 3)
.attr('dy', '1.35em')
.text('bandwidth')
// segment bitrate dots
svg.selectAll('.segment-bitrate').remove();
svg.selectAll('.segment-bitrate')
......