Slide 58
Slide 58 text
複雑なUI > グラフ描画
Canvasの利用
@Composable
internal fun CartesianChartHostImpl(...) {
:
Canvas(
modifier =
Modifier.fillMaxSize()
.chartTouchEvent(
:
)
) {
:
val drawingContext =
CartesianDrawingContext(
measuringContext = measuringContext,
canvas = drawContext.canvas.nativeCanvas,
:
)
chart.draw(drawingContext, model, markerTouchPoint.value)
:
引用:https://github.com/patrykandpatrick/vico/blob/master/vico/compose/
src/main/java/com/patrykandpatrick/vico/compose/cartesian/CartesianChartHost.kt