optimized line graph