mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 23:54:05 -08:00
b3978fe869
When Rickshaw was updated to 1.5.1 in
fd43daf82e
,
the Rickshaw upstream package now contained 3 different D3 files:
d3.min.js
d3.v2.js
d3.v3.js
For details on why that is, see
https://groups.google.com/forum/#!topic/d3-js/lXQgKA7mtEw
For the 1.5.1 Rickshaw to work properly (being able to format dates with
D3 without causing a JS error), it needs d3.v2.js or d3.v3.js, not the
d3.min.js one. I chose to update us to d3.v3.js now, since that is the
most recent and minified version, and I didn't see any problems with it
(also, the current Rickshaw examples are using that D3 version).
Currently, displaying graphs with a range >14d is broken. This fixes
that.
31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
{{define "head"}}
|
|
<script src="/static/vendor/bootstrap-3.3.1/js/bootstrap.min.js"></script>
|
|
|
|
<link type="text/css" rel="stylesheet" href="/static/css/graph.css">
|
|
|
|
<link type="text/css" rel="stylesheet" href="/static/vendor/rickshaw/rickshaw.min.css">
|
|
<link type="text/css" rel="stylesheet" href="/static/vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
|
|
|
|
<script src="/static/vendor/rickshaw/vendor/d3.v3.js"></script>
|
|
<script src="/static/vendor/rickshaw/vendor/d3.layout.min.js"></script>
|
|
<script src="/static/vendor/rickshaw/rickshaw.min.js"></script>
|
|
<script src="/static/vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script>
|
|
<script src="/static/vendor/bootstrap3-typeahead/bootstrap3-typeahead.min.js"></script>
|
|
|
|
<script src="/static/vendor/js/handlebars.js"></script>
|
|
<script src="/static/vendor/js/jquery.selection.js"></script>
|
|
<script src="/static/vendor/js/jquery.hotkeys.js"></script>
|
|
|
|
<script src="/static/js/graph.js"></script>
|
|
|
|
<script id="graph_template" type="text/x-handlebars-template"></script>
|
|
{{end}}
|
|
|
|
{{define "content"}}
|
|
<div id="graph_container" class="container-fluid">
|
|
</div>
|
|
<div class="container-fluid">
|
|
<div><input class="btn btn-primary" type="submit" value="Add Graph" id="add_graph"></div>
|
|
</div>
|
|
{{end}}
|