A chart api to generate image and web chart