Commit 68f86cac4f082ea916c2bfd2fd04694d5db13449
1 parent
2ba07313
Exists in
colab
and in
4 other branches
Some style to the metrics history graphic
Showing
2 changed files
with
4 additions
and
2 deletions
Show diff stats
app/assets/javascripts/module/graphic.js.coffee
| ... | ... | @@ -15,4 +15,4 @@ class Module.Graphic |
| 15 | 15 | display(data,container) |
| 16 | 16 | |
| 17 | 17 | display: (data, container) -> |
| 18 | - $('div#'+container).html('<img id="' + container + '" src="data:image/png;base64,' + data + '" />') | |
| 19 | 18 | \ No newline at end of file |
| 19 | + $('div#'+container).html('<img id="' + container + '" src="data:image/png;base64,' + data + '" class="img-rounded"/>') | |
| 20 | 20 | \ No newline at end of file | ... | ... |
app/controllers/modules_controller.rb
| ... | ... | @@ -26,7 +26,9 @@ class ModulesController < ApplicationController |
| 26 | 26 | graphic.hide_title = true |
| 27 | 27 | graphic.hide_legend = true |
| 28 | 28 | graphic.theme = { |
| 29 | - :background_colors => 'transparent' | |
| 29 | + colors: ['grey'], | |
| 30 | + marker_color: 'black', | |
| 31 | + background_colors: '#fff', | |
| 30 | 32 | } |
| 31 | 33 | |
| 32 | 34 | graphic.labels = Hash[dates.each_with_index.map{ |date, index| [index, date.to_s]}] | ... | ... |