commonMain.com.aay.compose.utils.ChartDefaultValues.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chart Show documentation
Show all versions of chart Show documentation
Multiplatform library for desktop and android
The newest version!
package com.aay.compose.utils
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.aay.compose.barChart.model.BarParameters
import com.aay.compose.baseComponents.model.GridOrientation
import com.aay.compose.baseComponents.model.LegendPosition
import com.aay.compose.lineChart.model.LineParameters
import com.aay.compose.lineChart.model.LineType
internal object ChartDefaultValues {
val lineParameters: List = listOf(
LineParameters(
label = "revenue",
data = emptyList(),
lineColor = Color.Blue,
lineType = LineType.CURVED_LINE,
lineShadow = true,
)
)
val barParameters: List = listOf(
BarParameters(
dataName = "revenue",
data = emptyList(),
barColor = Color.Blue,
)
)
val barWidth = 30.dp
val spaceBetweenBars = 10.dp
val spaceBetweenGroups = 40.dp
const val IS_SHOW_GRID = true
val gridColor = Color.Gray
const val ANIMATED_CHART = true
val backgroundLineWidth = 1.dp
const val SHOW_BACKGROUND_WITH_SPACER = true
const val chartRatio = 0f
val descriptionDefaultStyle = TextStyle(
color = Color.Black,
fontSize = 14.sp,
fontWeight = FontWeight.W400
)
val headerArrangement = Arrangement.spacedBy(24.dp)
val axesStyle = TextStyle(
fontSize = 12.sp,
color = Color.Gray,
)
const val yAxisRange = 6
const val specialChart = false
const val showXAxis = true
const val showyAxis = true
val gridOrientation = GridOrientation.HORIZONTAL
val legendPosition = LegendPosition.TOP
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy