Time Span Expressions
Time Span Expressions
The chart data contains the date membership started.
The point labels use that date to calculate the duration of the membership and average usage per year.
All this is accomplished by setting the point label string as follows:
'Member <br>
{years(' + Date.now() + '-%since):number n1}
Years <br>
{%value/years(' + Date.now() + '-%since):number n1}
/ Year'
{years(' + Date.now() + '-%since):number n1}
Years <br>
{%value/years(' + Date.now() + '-%since):number n1}
/ Year'