Home Forums Chart Support border around charts

border around charts

Viewing 3 posts - 1 through 3 (of 3 total)
  • #6320

    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

    #6330

    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.

    Setting border around charts

    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

    #6335

    Its working, thanks.

    we use default side on chart but don’t set height of the container itself.

    I think both options are correct :)

    • This reply was modified 10 years, 6 months ago by Daniel Silva.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.