Improve performence for linechart