-
-
+
+
+
+
+
+
+
+ + Performance Reviews +
+Track your performance history and feedback
+
+ <%
+ total_reviews = @perf.count
+ avg_score = @perf.any? ? (@perf.sum(&:score).to_f / total_reviews).round(1) : 0
+ latest_score = @perf.last&.score || 0
+ highest_score = @perf.any? ? @perf.max_by(&:score).score : 0
+ %>
+
+
+
+
@@ -79,47 +216,52 @@ function drawChart2() {
var options = {
min: 1,
max: 5,
- width: 'auto',
- height: '160',
+ width: '100%',
+ height: 300,
backgroundColor: 'transparent',
- colors: ['#e26666', '#579da9', '#1e825e', '#b5799e', '#dba26b'],
+ colors: ['#e63946'],
tooltip: {
textStyle: {
color: '#666666',
- fontSize: 11
+ fontSize: 12
},
showColorCode: true
},
legend: {
textStyle: {
- color: 'black',
- fontSize: 12
+ color: '#333333',
+ fontSize: 13
}
},
chartArea: {
- left: 100,
- top: 10
+ left: 60,
+ top: 20,
+ right: 20,
+ bottom: 50,
+ width: '90%',
+ height: '70%'
},
focusTarget: 'category',
hAxis: {
textStyle: {
- color: 'black',
- fontSize: 12
- }
+ color: '#666666',
+ fontSize: 11
+ },
+ slantedText: true,
+ slantedTextAngle: 45
},
vAxis: {
textStyle: {
- color: 'black',
- fontSize: 12
+ color: '#666666',
+ fontSize: 11
+ },
+ gridlines: {
+ color: '#f0f0f0'
}
},
- pointSize: 8,
- chartArea: {
- left: 60,
- top: 10,
- height: '80%'
- },
- lineWidth: 2,
+ pointSize: 6,
+ lineWidth: 3,
+ curveType: 'function'
};
var chart = new google.visualization.LineChart(chartElement);
@@ -159,4 +301,31 @@ $(document).on('turbolinks:load', function() {
initializeChart();
});
-
\ No newline at end of file
+
+
+
+
+
-
-
-
+