JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://people.iola.dk/olau/flot/jquery.flot.js"></script>
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css">
<div data-role="page" id="main">
    <div data-role="header" data-position="fixed">
        <h1>test</h1>
    </div>
    <div data-role="content">
        <a href="#graph">Display graph</a>
    </div>
    <div data-role="footer" data-position="fixed">
        <h4>test</h4>
    </div>
</div>
<div data-role="page" id="graph">
    <div data-role="header" data-position="fixed">
        <h1>graphics</h1>
    </div>
    <div data-role="content">
        <div id="chart" style="width: 600px; height: 350px;"></div>
    </div>
    <div data-role="footer" data-position="fixed">
        <h4>test</h4>
    </div>
</div>

JavaScript

var data = [[0, 3], [4, 8], [8, 5], [9, 13]];

$('#graph').bind('pageshow', function() {
    var plot = $.plot($("#chart"), [
        {
        label: "Oh hai",
        data: data,
        bars: {
            show: true
        }}
    ]);
});