func fetchChart(href string) (*bytes.Buffer, error) {
	buf := bytes.NewBuffer(nil)

	resp, err := http.Get(href)
	if err != nil {
		return buf, err
	}
	if resp.StatusCode != 200 {
		return buf, fmt.Errorf("Failed to fetch %s : %s", href, resp.Status)
	}

	_, err = io.Copy(buf, resp.Body)
	resp.Body.Close()
	return buf, err
}
// fetchChart retrieves a chart over HTTP.
fetchChart retrieves a chart over HTTP.
// fetchChart retrieves a chart over HTTP .
func fetchChart(href string) (*bytes.Buffer, error) {
	buf := bytes.NewBuffer(nil)
	resp, err := http.Get(href)
	if err != nil {
		return buf, err
	}
	if resp.StatusCode != 200 {
		return buf, fmt.Errorf("Failed to fetch %s : %s", href, resp.Status)
	}
	_, err = io.Copy(buf, resp.Body)
	resp.Body.Close()
	return buf, err
}
func fetchChart ( href string ) ( * bytes . Buffer , error ) { buf := bytes . NewBuffer ( nil ) resp , err := http . Get ( href ) if err != nil { return buf , err } if resp . StatusCode != 200 { return buf , fmt . Errorf ( " " , href , resp . Status ) } _ , err = io . Copy ( buf , resp . Body ) resp . Body . Close ( ) return buf , err }
fetchChart retrieves a chart over HTTP.
fetchChart retrieves a chart over HTTP .