ok, then i could just take the whole xml through the getXML method of the api, convert the whole xml to json, alter the enableLink attribute of the chart element, and convert the json back to xml and use the setDataXML method. hmm...
it could have been far better if you guys have implemented a setChartAttribute method, just like the getChartAttribute method in api.