Fixed and optimized c3_chart_internal_fn.generateGetTimelineBarPoints