Hi, two questions here…
Im working with a 3D PieChart and i need to print it in paper. How can i put a ‘print’ button inside the container of my chart and use it to print the pie?
On the other hand, i need to use the different sectors of the PieChart as a hyperlinks.
Thanks a lot!
Regards!
Hi,
How can i put a ‘print’ button inside the container of my chart and use it to print the pie?
Try to place it directly into chart container:
chart = new dhtmlXChart({
container:“mychart”,
…
});
document.getElementById(“mychart”).innerHTML += ‘’;
chart.parse(data,“json”);
On the other hand, i need to use the different sectors of the PieChart as a hyperlinks.
you may set onItemClick click event handler. And if items have “href” property, you may do the following:
chart.attachEvent("onItemClick",function(id){
var href = this.get(id).href;
})