You must be logged in to post your query.
Home › Forums › Chart Support › border around charts
Hi,
I’m trying to put a border around charts. Setting a border around the div appears to be a good option, but the canvas is drawn above the border. Probably some problem with float: left
http://jsfiddle.net/dreamfalcon/8BzE3/2/
Any ideas?
Br, Daniel
Daniel,
The issue is that the height is not set for the chart container and hence border is getting drawn only at the top. Here is a JSFiddle with the issue fixed.
As of now whenever height of the container is not set, we use default size on chart but don’t set height of the container itself. In future versions we’ll consider this.
— Sunil Urs Team CanvasJS
Its working, thanks.
we use default side on chart but don’t set height of the container itself.
I think both options are correct :)
You must be logged in to reply to this topic. Login/Register