Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d8ca0f0a
authored
2014-05-29 14:46:29 -0400
by
David LaPalomento
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Label the bandwidth line
Make it easier to understand what the graph is showing.
1 parent
bd7529ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
test/switcher/js/switcher.js
test/switcher/js/switcher.js
View file @
d8ca0f0
...
...
@@ -292,7 +292,7 @@
.
attr
(
'transform'
,
'translate(0,'
+
height
+
')'
)
.
call
(
timeAxis
);
// b
andwidth
axis
// b
itrate
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'
)
...
...
Please
register
or
sign in
to post a comment