doc/classes/Lilygraph.html in Kelsin-lilygraph-0.4.0 vs doc/classes/Lilygraph.html in Kelsin-lilygraph-0.4.1
- old
+ new
@@ -220,9 +220,22 @@
number of labels. The size of this array should = the size of the data
array.
</td>
</tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">legend</td>
+ <td class="context-item-value"> [RW] </td>
+ <td class="context-item-desc">
+This allows you to make a legend for your graph. Just pass in a hash of
+color => text pairs. Set to nil if you don‘t want a legend. No
+legend is the default.
+
+<pre>
+ graph.legend = { '#ff0000' => 'Chris', '#00ff00' => 'Caitlin' }
+</pre>
+</td>
+ </tr>
</table>
</div>
</div>
\ No newline at end of file