Skip to content

Commit

Permalink
show only hours and minutes on x axis
Browse files Browse the repository at this point in the history
show only hours and minutes on x axis
  • Loading branch information
btomala authored Apr 23, 2024
2 parents f744e39 + 85502c5 commit 96841d5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ var speedSpec = {
x: {
field: 'created_at',
type: 'temporal',
timeUnit: 'dayshoursminutes',
timeUnit: 'hoursminutes',
axis: {
title: 'Local Time',
titleFontSize: 15,
Expand All @@ -212,7 +212,8 @@ var speedSpec = {
format: ".1f",
title: 'Avg. wind & Gust m/s',
titleFontSize: 15,
labelFontSize: 18
labelFontSize: 18,
labelSeparation: 3
}
}
}
Expand Down Expand Up @@ -246,11 +247,12 @@ var speedSpec = {
x: {
field: 'created_at',
type: 'temporal',
timeUnit: 'dayshoursminutes',
timeUnit: 'hoursminutes',
axis: {
title: 'Local Time',
titleFontSize: 15,
labelFontSize: 18
labelFontSize: 18,
labelSeparation: 3
}
}
}
Expand Down Expand Up @@ -279,11 +281,12 @@ var speedSpec = {
x: {
field: 'created_at',
type: 'temporal',
timeUnit: 'dayshoursminutes',
timeUnit: 'hoursminutes',
axis: {
title: 'Local Time',
titleFontSize: 15,
labelFontSize: 18
labelFontSize: 18,
labelSeparation: 3
}
}
}
Expand Down

0 comments on commit 96841d5

Please sign in to comment.