rendering sparkline chart on detail page