Skip to content

Commit

Permalink
refactor: PieChartPreview 생성,언어 한글로 적용(#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay200333 committed Jan 9, 2025
1 parent 9f3faa0 commit f064ba8
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.viewinterop.AndroidView
import com.github.mikephil.charting.animation.Easing
Expand All @@ -19,6 +20,7 @@ import com.github.mikephil.charting.data.PieDataSet
import com.github.mikephil.charting.data.PieEntry
import com.github.mikephil.charting.formatter.ValueFormatter
import com.github.mikephil.charting.utils.ColorTemplate.VORDIPLOM_COLORS
import kr.boostcamp_2024.course.designsystem.ui.theme.WeQuizTheme
import kr.boostcamp_2024.course.quiz.R

@Composable
Expand Down Expand Up @@ -78,3 +80,11 @@ fun PieChartScreen(userAnswers: List<Int>) {
)
}
}

@Preview(showBackground = true, locale = "ko")
@Composable
private fun PieChartScreenPreview() {
WeQuizTheme {
PieChartScreen(userAnswers = listOf(1, 2, 3, 4))
}
}

0 comments on commit f064ba8

Please sign in to comment.