oesmith/morris.js — pull request #129 by yonpols (2012-12-05 14:21:35+00:00)
Title: Allow to show a custom label for each point of each series

We are using your library to show percentages change over time on line charts. But we need to show somehow the population of these percentages, for example te value of a point is 0.34, but we need to show on the legend: 0.34 out of 130,000 requests.

In order to do that I added the posibility to pass on each point a structure identical to Donut charts data for example:

```
Morris.Line({
element: 'element',
data: [
{y: '2012', a: {value: 100, label: 'one hundred'}},
{y: '2011', a: {value: 75, label: 'seventy five'}},
{y: '2010', a: 50},
{y: '2009', a: 75},
{y: '2008', a: 50},
{y: '2007', a: 75},
{y: '2006', a: 100}
],
xkey: 'y',
ykeys: ['a'],
labels: ['Series A']
});
```

With this change, values that have value and label have the label shown on the lengend.