replace online google charts library with D3 charting library for drawing charts