Skip to content

Commit

Permalink
fix: chart bottom ticks (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Aug 3, 2024
1 parent 2b1d675 commit bb038a3
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

252 changes: 252 additions & 0 deletions .idea/other.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ import androidx.compose.ui.tooling.preview.Preview
import com.patrykandpatrick.vico.compose.axis.horizontal.rememberBottomAxis
import com.patrykandpatrick.vico.compose.axis.vertical.rememberEndAxis
import com.patrykandpatrick.vico.compose.chart.Chart
import com.patrykandpatrick.vico.compose.chart.layout.fullWidth
import com.patrykandpatrick.vico.compose.chart.line.lineChart
import com.patrykandpatrick.vico.compose.chart.scroll.rememberChartScrollSpec
import com.patrykandpatrick.vico.compose.m3.style.m3ChartStyle
import com.patrykandpatrick.vico.compose.style.ProvideChartStyle
import com.patrykandpatrick.vico.core.axis.AxisItemPlacer
import com.patrykandpatrick.vico.core.axis.vertical.VerticalAxis
import com.patrykandpatrick.vico.core.chart.layout.HorizontalLayout
import com.patrykandpatrick.vico.core.entry.ChartEntryModelProducer
import com.tien.piholeconnect.model.Entry
import com.tien.piholeconnect.model.LineChartData
Expand Down Expand Up @@ -86,7 +88,8 @@ fun LineChart(
horizontalLabelPosition = VerticalAxis.HorizontalLabelPosition.Inside,
itemPlacer = remember { AxisItemPlacer.Vertical.default(maxItemCount = 3) }),
chartScrollSpec = rememberChartScrollSpec(isScrollEnabled = false),
marker = rememberMarker()
marker = rememberMarker(),
horizontalLayout = HorizontalLayout.fullWidth()
)
}

Expand Down

0 comments on commit bb038a3

Please sign in to comment.