Changeset 4bab6c1 in OpenWorkouts-current
- Timestamp:
- Jan 29, 2019, 12:02:12 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- bed4f06
- Parents:
- 7783f97
- Location:
- ow
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/static/js/ow.js
r7783f97 r4bab6c1 31 31 var openstreetmap_attr = 'Map data © <a href="http://www.osm.org">OpenStreetMap</a>'; 32 32 33 // Some constants reused through the code33 // Some vars reused through the code 34 34 var map; 35 35 var gpx; … … 147 147 Build a d3 bar chart, populated with data from the given url. 148 148 */ 149 var chart = d3.select( "svg"),149 var chart = d3.select(chart_selector), 150 150 margin = {top: 20, right: 20, bottom: 30, left: 50}, 151 151 width = +chart.attr("width") - margin.left - margin.right, -
ow/templates/dashboard.pt
r7783f97 r4bab6c1 211 211 <script type="text/javascript"> 212 212 var week_chart = owjs.week_chart({ 213 chart_selector: 'div.js-week-stats ',213 chart_selector: 'div.js-week-stats svg', 214 214 url: "${request.resource_url(context, 'week')}", 215 215 current_day_name: "${current_day_name}"
Note: See TracChangeset
for help on using the changeset viewer.