Changeset a596867 in OpenWorkouts-current
- Timestamp:
- Feb 28, 2019, 9:50:55 AM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 3ea428a
- Parents:
- cef474f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/static/js/ow.js
rcef474f ra596867 278 278 function get_name_for_x(d) { 279 279 if (d.week == undefined || d.week == 0) { 280 // Monthly chart or first week of the weekly chart, return 281 // the name of the month, which will be shown in the x-axis 282 // ticks 280 283 return d.name; 281 284 } 282 285 else { 283 return d.id.split('-')[2]; 286 // Weekly chart, week other than the first, return the id so 287 // we can place it in the chart, we won't show this to the 288 // user 289 return d.id 284 290 } 285 291 }
Note: See TracChangeset
for help on using the changeset viewer.