Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="placeholder" style="width:600px;height:300px;"></div>
- <p>Graph here</p>
- <script type="text/javascript">
- var data = [
- <? foreach ($all_users as $user): ?>
- ["day","<?= count($all_users); ?>"],
- <? endforeach; ?>
- ];
- $.plot($("#placeholder"), data, {
- yaxis: {
- min: 0,
- max: 100
- },
- xaxis: { mode: "time",minTickSize: [0, "day"],
- min: (new Date("<?= $from_date; ?>")).getTime(),
- max: (new Date("<?= $until_date; ?>")).getTime()
- },
- "lines": {"show": "true"},
- "points": {"show": "true"},
- clickable:true,hoverable: true
- });
Add Comment
Please, Sign In to add comment