var div = document.createElement("div");
div.className = "dygraph-legend";
for (var name in messagestyle) {
- if (messagestyle.hasOwnProperty(name)) {
- try {
- div.style[name] = messagestyle[name];
- } catch (e) {
- this.warn("You are using unsupported css properties for your browser in labelsDivStyles");
- }
- }
+ if (messagestyle.hasOwnProperty(name)) {
+ try {
+ div.style[name] = messagestyle[name];
+ } catch (e) {
+ this.warn("You are using unsupported css properties for your browser in labelsDivStyles");
+ }
+ }
}
this.graphDiv.appendChild(div);
this.attrs_.labelsDiv = div;
labelsDivWidth: 100,
labelsDivStyles: {
'backgroundColor': 'rgba(200, 200, 255, 0.75)',
- 'padding': '4px',
- 'border': '1px solid black',
- 'borderRadius': '10px',
- 'boxShadow': '4px 4px 4px #888'
- },
+ 'padding': '4px',
+ 'border': '1px solid black',
+ 'borderRadius': '10px',
+ 'boxShadow': '4px 4px 4px #888'
+ },
labelsSeparateLines: true,
yAxisLabelWidth: 20
}