diff --git a/web/static/css/graph.css b/web/static/css/graph.css
index 1ea9bf1f0..ba703a744 100644
--- a/web/static/css/graph.css
+++ b/web/static/css/graph.css
@@ -61,21 +61,6 @@ body {
width: 40px;
}
-.graph .detail .x_label.flipped {
- right: 0;
-}
-
-.graph .detail .item.flipped {
- right: 10px;
-}
-
-.graph .detail .item.flipped:before {
- content: "\25b8";
- left: auto;
- right: 1px;
- font-size: 0.8em;
-}
-
.graph .detail .item.active {
line-height: 1.4em;
padding: 0.5em;
diff --git a/web/static/js/graph.js b/web/static/js/graph.js
index c4ae91d2f..568af186d 100644
--- a/web/static/js/graph.js
+++ b/web/static/js/graph.js
@@ -456,27 +456,7 @@ Prometheus.Graph.prototype.updateGraph = function(reloadGraph) {
var swatch = '';
var content = swatch + (series.labels["__name__"] || 'value') + ": " + y + '
';
return content + self.renderLabels(series.labels);
- },
- onRender: function() {
- var width = this.graph.width;
- var element = $(this.element);
-
- $(".x_label", element).each(function() {
- if ($(this).outerWidth() + element.offset().left > width) {
- $(this).addClass("flipped");
- } else {
- $(this).removeClass("flipped");
- }
- })
-
- $(".item", element).each(function() {
- if ($(this).outerWidth() + element.offset().left > width) {
- $(this).addClass("flipped");
- } else {
- $(this).removeClass("flipped");
- }
- })
- },
+ }
});
var legend = new Rickshaw.Graph.Legend({