app/views/_chart.html.erb
<% if local_assigns[:discrete] and discrete %>
<%= line_chart chart_input_data, discrete: true, height: '500px' ,library: { backgroundColor: '#272B30', vAxis: { textStyle: { color: '#C8C8C8'} }, hAxis: { textStyle: { color: '#C8C8C8'} }, legend: { textStyle: { color: '#C8C8C8' } }, chartArea: {left: '6%', right: '12%', top: '3%', bottom: '12%', width:'82%', height: '85%'} } %>
<% else %>
<%= line_chart chart_input_data, height: '500px' ,library: { backgroundColor: '#272B30', vAxis: { textStyle: { color: '#C8C8C8'} }, hAxis: { textStyle: { color: '#C8C8C8'} }, legend: { textStyle:{ color: '#C8C8C8' } }, chartArea: {left: '6%', right: '12%', top: '3%', bottom: '12%', width:'82%', height: '85%'} } %>
<% end %>