Chartkick gem: display legend vertically on top
<p>I am using the ChartKick Ruby gem, and am trying to display the legend at the top (which I manage) with the items vertically (which I don't manage).</p>

<p>The legend keeps being displayed horizontally which is a problem for mobile devices.</p>

<p>My code:</p>

<pre><code>&lt;script&gt;
    var Chartkick = {"language": "pt"};
&lt;/script&gt;
&lt;%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %&gt;
&lt;%= bar_chart metric, library: {colors: colors, backgroundColor: "#ffffff", hAxis:{title:hAxisTitle, format: '##########'}, vAxis:{title:vAxisTitle}, isStacked: true, legend: {layout: "vertical", position: "top"}, }, height: '200px' %&gt;
</code></pre>

<p>The layout:vertical option simply doesn't seem to work :-(</p>