Forums

Forums / Bugs & Issues / Adding chart to the page

Adding chart to the page

2 posts, 1 answered
  1. Marko Mustonen
    Marko Mustonen avatar
    1 posts
    Registered:
    14 Aug 2020
    21 Sep 2020
    Link to this post
    Hi,

    I've added a chart to the page and it would appear to be centered on the page..
    But when I make browser window smaller, the chart is on the right hand side and not in center.

    How can I defined the alignment of chart that is visible on the page?

    Thanks in advance.

    Best regards,
    Marko



  2. Adam Benoit
    Adam Benoit avatar
    23 posts
    Registered:
    01 Mar 2017
    Answered
    21 Sep 2020 in reply to Marko Mustonen
    Link to this post
    Hi Marko,

    I have been able to reproduce the issue you describe. It appears the issue is when the page is resized, the chart looks like it should be redrawn but isn't.

    I have created a task and it has been assigned to a developer.  Can you please reach out to support to create a free support case to track this issue.

    In the meantime, here is some javascript that will trigger the resize function on chart control when the window resizes. This should work in most cases:

    $(window).on("resize", function(e){
        tpc.page.TpcChartModel.get_chart().resize();
     });

    Last modified on 21 Sep 2020 16:09 by Adam Benoit
2 posts, 1 answered