chart's bug fixed and completed!