• Resolved bcreed5972

    (@ecaceres)


    Hello,

    I have a problem with chart size. I added chart in tabs. When page is load display fine but when I change tabs from 1st to 2nd and come back the again 1st tab, the chart size is reduce and display in small width.

Viewing 1 replies (of 1 total)
  • Plugin Support Vytis

    (@bvytis)

    Hi @ecaceres,

    This happens when switching between the tabs, however, we you can use a workaround, please add this function to trigger the chart so it will be resized in the correct size:

    jQuery('button').click(function() {
       jQuery(window).trigger('resize');
    });

    Where button is either the ID or class of the tabs that you’re using to click for Visualizer to re-render charts.

    You can use OrbitFox plugin to add custom scripts in needed – https://docs.themeisle.com/article/1277-header-footer-scripts-orbit-fox-module

    I hope it helps!

Viewing 1 replies (of 1 total)

The topic ‘Size reduce when chart added in tabs’ is closed to new replies.