modify chart to support http