144144 <script src="{{path_to_root}}js/d3.min.js" type="text/javascript"></script>
145145 <script src="{{path_to_root}}js/nv.d3.min.js" type="text/javascript"></script>
146146 <script type="text/javascript">
147- $(document).ready(function() {{
148- nv.addGraph(function() {{
147+ $(document).ready(function() {
148+ nv.addGraph(function() {
149149 var chart = nv.models.multiBarChart();
150150 chart.tooltips(false)
151151 .showControls(false)
@@ -161,9 +161,9 @@ $(document).ready(function() {{
161161 nv.utils.windowResize(chart.update);
162162
163163 return chart;
164- }} );
164+ });
165165
166- nv.addGraph(function() {{
166+ nv.addGraph(function() {
167167 var chart = nv.models.multiBarChart();
168168 chart.tooltips(false)
169169 .showControls(false)
@@ -179,9 +179,9 @@ $(document).ready(function() {{
179179 nv.utils.windowResize(chart.update);
180180
181181 return chart;
182- }} );
182+ });
183183
184- function getCoverageDistributionData(data, label) {{
184+ function getCoverageDistributionData(data, label) {
185185 var labels = [
186186 '0%',
187187 '0-10%',
@@ -197,28 +197,28 @@ $(document).ready(function() {{
197197 '100%'
198198 ];
199199 var values = [];
200- $.each(labels, function(key) {{
201- values.push({{ x: labels[key], y: data[key]} });
202- }} );
200+ $.each(labels, function(key) {
201+ values.push({x: labels[key], y: data[key]});
202+ });
203203
204204 return [
205- {{
205+ {
206206 key: label,
207207 values: values,
208208 color: "#4572A7"
209- }}
209+ }
210210 ];
211- }}
212- nv.addGraph(function() {{
211+ }
212+ nv.addGraph(function() {
213213 var chart = nv.models.scatterChart()
214214 .showDistX(true)
215215 .showDistY(true)
216216 .showLegend(false)
217217 .forceX([0, 100]);
218218 chart.scatter.onlyCircles(false);
219- chart.tooltipContent(function(key, y, e, graph) {{
219+ chart.tooltipContent(function(key, y, e, graph) {
220220 return '<p>' + graph.point.class + '</p>';
221- }} );
221+ });
222222
223223 chart.xAxis.axisLabel('Code Coverage (in percent)');
224224 chart.yAxis.axisLabel('Cyclomatic Complexity');
@@ -232,18 +232,18 @@ $(document).ready(function() {{
232232 nv.utils.windowResize(chart.update);
233233
234234 return chart;
235- }} );
235+ });
236236
237- nv.addGraph(function() {{
237+ nv.addGraph(function() {
238238 var chart = nv.models.scatterChart()
239239 .showDistX(true)
240240 .showDistY(true)
241241 .showLegend(false)
242242 .forceX([0, 100]);
243243 chart.scatter.onlyCircles(false);
244- chart.tooltipContent(function(key, y, e, graph) {{
244+ chart.tooltipContent(function(key, y, e, graph) {
245245 return '<p>' + graph.point.class + '</p>';
246- }} );
246+ });
247247
248248 chart.xAxis.axisLabel('Code Coverage (in percent)');
249249 chart.yAxis.axisLabel('Method Complexity');
@@ -257,30 +257,30 @@ $(document).ready(function() {{
257257 nv.utils.windowResize(chart.update);
258258
259259 return chart;
260- }} );
260+ });
261261
262- function getComplexityData(data, label) {{
262+ function getComplexityData(data, label) {
263263 var values = [];
264- $.each(data, function(key) {{
264+ $.each(data, function(key) {
265265 var value = Math.round(data[key][0]*100) / 100;
266- values.push({{
266+ values.push({
267267 x: value,
268268 y: data[key][1],
269269 class: data[key][2],
270270 size: 0.05,
271271 shape: 'diamond'
272- }} );
273- }} );
272+ });
273+ });
274274
275275 return [
276- {{
276+ {
277277 key: label,
278278 values: values,
279279 color: "#4572A7"
280- }}
280+ }
281281 ];
282- }}
283- }} );
282+ }
283+ });
284284 </script>
285285 </body>
286286</html>
0 commit comments