on data-index="0">Domain From Data Extent</button>
                <button data-index="1">[0, &pi;]</button>
            </p>
        </div>
        <script>
        $(function() {
            var domains = [
                null,
                [0, Math.PI]
            ];

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

            $('#test-5 button').