--- chart.module.orig 2008-03-07 12:46:27.000000000 +0100 +++ chart.module 2008-03-07 13:05:20.000000000 +0100 @@ -123,6 +123,25 @@ } /** +* Returns just the url of the chart. +* +* @param array $chart +* +* @return mixed +* - Success: Chart image markup +* - Failure: FALSE +*/ + +function chart_url($chart, $attributes = array()) { + if ($chart_query_string = chart_build($chart)){ + return CHART_URI . '?' . $chart_query_string; + } + else { + return FALSE; + } +} + +/** * Copies rendered chart image. * * @param array $chart