diff --git a/app/components/line-chart.js b/app/components/line-chart.js index e22491e..d4899b9 100644 --- a/app/components/line-chart.js +++ b/app/components/line-chart.js @@ -52,22 +52,26 @@ export default Ember.Component.extend({ // generate plot options var options = { - series: { - lines: { - show: true, - lineWidth: 2 - }, - shadowSize: 0 - }, - xaxis: { - mode: 'time', - timeformat: '%M:%S', - min: firstTimestamp, - max: lastTimestamp - }, - yaxis: { - tickDecimals: 3 - } + series: { + lines: { + show: true, + lineWidth: 2 + }, + shadowSize: 0 + }, + xaxis: { + mode: 'time', + timeformat: '%M:%S', + min: firstTimestamp, + max: lastTimestamp, + axisLabel: 'time [min]', + axisLabelUseCanvas: true + }, + yaxis: { + tickDecimals: 1, + axisLabel: this.data.get('type'), + axisLabelUseCanvas: true + } } // set y axis scale @@ -86,7 +90,7 @@ export default Ember.Component.extend({ } if (this.get('useLabel')) { - plotData.label = this.data.get('name') + " [" + this.data.get('type') + "]"; + plotData.label = this.data.get('name'); } // draw plot diff --git a/app/styles/app.css b/app/styles/app.css index 7ace4ca..2733811 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -50,6 +50,11 @@ html, body { display: none; } +.vertical-text { + transform: rotate(270deg); + transform-origin: left top 0; +} + /* * Application */ @@ -178,7 +183,8 @@ p { } .layout-page { - background-color: #f2f2f2; + /*background-color: #f2f2f2;*/ + background-color: #fff; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 9px 18px 0 rgba(0, 0, 0, 0.1); @@ -250,7 +256,8 @@ p { } .data-table { - background: #eee; + /*background: #eee;*/ + background: #fff; margin: 0; padding: 0; diff --git a/app/templates/components/entity-chart.hbs b/app/templates/components/entity-chart.hbs index 980acdf..47c14ee 100644 --- a/app/templates/components/entity-chart.hbs +++ b/app/templates/components/entity-chart.hbs @@ -9,7 +9,11 @@
[{{visibleProperty.type}}]
+[min]