Forum Replies Created by vulturistic

Viewing 2 posts - 1 through 2 (of 2 total)
  • in reply to: Resize Canvas when parent-div got resized #7583

    hi,
    I have the same problem as yours, I fixed it by using the following code:

    var chart = new CanvasJS.Chart(“chartContainer”,
    {
    height: 550, //in pixels
    width: 600,
    title:{
    text: “Earthquakes – per month”
    },

    I have set the height and width inside the property of chart. I have encountered the same bug when I first set the height and width in my <div>. Hope this will help.

    in reply to: Charts aren't full-size until page is refreshed #7582

    Thanks syduck! your pro-tip is super effective! :) the height and width works fine for me. At first I set the height and width in my <div> but sometimes my chart isn’t displaying the proper size until I refresh it. Your solution fixed the bug. Thanks again!

Viewing 2 posts - 1 through 2 (of 2 total)