projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Feature Request] Provide option to set color and width for annotation line (#703)
[dygraphs.git]
/
tests
/
customLabelCss3.html
diff --git
a/tests/customLabelCss3.html
b/tests/customLabelCss3.html
index
a9d4e4e
..
ae08bf7
100644
(file)
--- a/
tests/customLabelCss3.html
+++ b/
tests/customLabelCss3.html
@@
-1,14
+1,25
@@
<!DOCTYPE html>
<html>
<head>
<!DOCTYPE html>
<html>
<head>
+ <link rel="stylesheet" href="../css/dygraph.css">
<title>Label styles</title>
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
-->
<title>Label styles</title>
<!--
For production (minified) code, use:
<script type="text/javascript" src="dygraph-combined.js"></script>
-->
- <script type="text/javascript" src="../d
ygraph-dev
.js"></script>
+ <script type="text/javascript" src="../d
ist/dygraph
.js"></script>
<script type="text/javascript" src="data.js"></script>
<script type="text/javascript" src="data.js"></script>
+ <style>
+ .dygraph-legend {
+ background-color: rgba(200, 200, 255, 0.75);
+ padding: 4px;
+ border: 1px solid black;
+ border-radius: 10px;
+ box-shadow: 4px 4px 4px #888;
+ width: 100px;
+ }
+ </style>
</head>
<body>
<p>Labels are styled with css3:</p>
</head>
<body>
<p>Labels are styled with css3:</p>
@@
-20,16
+31,12
@@
NoisyData, {
rollPeriod: 14,
errorBars: true,
NoisyData, {
rollPeriod: 14,
errorBars: true,
- labelsDivWidth: 100,
- labelsDivStyles: {
- 'backgroundColor': 'rgba(200, 200, 255, 0.75)',
- 'padding': '4px',
- 'border': '1px solid black',
- 'borderRadius': '10px',
- 'boxShadow': '4px 4px 4px #888'
- },
labelsSeparateLines: true,
labelsSeparateLines: true,
- yAxisLabelWidth: 20
+ axes: {
+ y: {
+ axisLabelWidth: 20
+ }
+ }
}
);
</script>
}
);
</script>