    <script>
        $(function() {
            var ranges = [
                null,
                [0, 1.5]
            ];

            var chart = $('#test-6 .epoch').epoch({
                type: 'area',
                data: data().add(function(x) { return 1 - Math.cos(x) }).get([0, 2*Math.PI], Math.PI/25)
            });

            $('#test-6 button').click(function(e) {
                var index = parseInt($(e.target).attr('data-index'));
                console.log(ranges[index]);
                