Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #259 from y-chan/feature/255-fix-rotation
Browse files Browse the repository at this point in the history
fix max rotation
  • Loading branch information
ohyama authored Apr 20, 2020
2 parents cceb5b6 + 6a1f668 commit 784463f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/TimeBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
displayOption() {
const unit = this.unit
const scaledTicksYAxisMax = this.scaledTicksYAxisMax
const maxRotation = this.showButton ? 0 : 45
const options: Chart.ChartOptions = {
tooltips: {
displayColors: false,
Expand Down Expand Up @@ -354,7 +355,7 @@ const options: ThisTypedComponentOptionsWithRecordProps<
fontSize: 9,
maxTicksLimit: 20,
fontColor: '#808080',
maxRotation: 0,
maxRotation,
callback: (label: string) => {
return this.showButton ? label.split('/')[1] : label
}
Expand Down

0 comments on commit 784463f

Please sign in to comment.