);
            });

            $('#test-3 button.tickFormats').click(function(e) {
                tickFormatsIndex = (tickFormatsIndex + 1) % tickFormats.length;
                chart.option(tickFormats[tickFormatsIndex]);
            });
        });
        </script>

        <!-- Test 4 -->
        <div id="test-4" class="test">
            <h2>4. Resize</h2>
            <p>
                Correctly resize the chart when the width and height options are set.
            </p>
            <div class="epo