summaryrefslogtreecommitdiff
path: root/jarmon/jarmon.js
diff options
context:
space:
mode:
Diffstat (limited to 'jarmon/jarmon.js')
-rw-r--r--jarmon/jarmon.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js
index c7af4ed..d62564d 100644
--- a/jarmon/jarmon.js
+++ b/jarmon/jarmon.js
@@ -671,14 +671,9 @@ jarmon.Chart.prototype.draw = function() {
self.template.find('.chart').empty().show(),
data, self.options);
- // @todo Make this styleable
var yaxisUnitLabel = $('<div>')
.text(self.siPrefix + unit)
- .css({'width': '100px',
- 'position': 'absolute',
- 'top': '80px',
- 'left': '-110px',
- 'text-align': 'right'});
+ .addClass('yaxisUnitLabel');
self.template.find('.chart').append(yaxisUnitLabel);
// Manipulate and move the Flot generated legend to an
@@ -705,7 +700,7 @@ jarmon.Chart.prototype.draw = function() {
'title': ('Data series switch - ' +
'click to turn this data series on or off')
})
- .width(orig.width()+20)
+ .width(orig.width()+20) // @todo Make this styleable
.text(label)
.prepend(
orig.prev()