Skip to content

Commit cfa44b1

Browse files
committed
Better fit of XAxisLables
1 parent b9cac97 commit cfa44b1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/kotlin/info/appdev/chartexample/TimeLineActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ class TimeLineActivity : DemoBase() {
5353
position = XAxisPosition.BOTTOM
5454
typeface = tfLight
5555
labelRotationAngle = 45f
56-
isDrawGridLines = false
56+
isDrawGridLines = true
5757
// granularity = 1f // only intervals of 1 day
5858
labelCount = 7
5959
valueFormatter = UnixTimeAxisValueFormatter("HH:mm:ss")
6060
}
6161

6262
// if disabled, scaling can be done on x- and y-axis separately
6363
binding.chart1.isPinchZoom = false
64-
64+
binding.chart1.setExtraOffsets(0f,0f,0f,24f)
6565
binding.chart1.legend.apply {
6666
isEnabled = false
6767
form = LegendForm.LINE
54 Bytes
Loading

0 commit comments

Comments
 (0)