generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: align visualization in chart mode
Signed-off-by: Luca Bretting <[email protected]>
- Loading branch information
1 parent
06cfb36
commit 9a7d16c
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,9 @@ | |
|
||
package de.amosproj3.ziofa.ui.visualization.composables.viewers | ||
|
||
import androidx.compose.foundation.layout.fillMaxSize | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import de.amosproj3.ziofa.ui.visualization.composables.chart.VicoBar | ||
import de.amosproj3.ziofa.ui.visualization.composables.chart.VicoTimeSeries | ||
import de.amosproj3.ziofa.ui.visualization.data.GraphedData | ||
|
@@ -13,7 +15,11 @@ import de.amosproj3.ziofa.ui.visualization.data.GraphedData | |
fun ChartViewer(data: GraphedData) { | ||
Check warning Code scanning / detekt This @Composable function emits content but doesn't have a modifier parameter. See https://twitter.github.io/compose-rules/rules/#when-should-i-expose-modifier-parameters for more information. Warning
This @Composable function emits content but doesn't have a modifier parameter.
See https://twitter.github.io/compose-rules/rules/#when-should-i-expose-modifier-parameters for more information.
|
||
when (data) { | ||
is GraphedData.TimeSeriesData -> | ||
VicoTimeSeries(seriesData = data.seriesData, chartMetadata = data.metaData) | ||
VicoTimeSeries( | ||
seriesData = data.seriesData, | ||
chartMetadata = data.metaData, | ||
modifier = Modifier.fillMaxSize(), | ||
) | ||
|
||
is GraphedData.HistogramData -> | ||
VicoBar(seriesData = data.seriesData, chartMetadata = data.metaData) | ||
|