Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
meikpiep committed Mar 6, 2025
1 parent 3720353 commit fff803c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,12 @@ class StatisticsActivity : AppCompatActivity() {
) {
val wrappedChartData = dublicateIfSingleItem(chartData)

chartView.setModel(
chartView.model =
CartesianChartModel(
LineCartesianLayerModel.build {
series(wrappedChartData)
},
),
)
)

addColorToLine(
chartView,
Expand All @@ -157,7 +156,7 @@ class StatisticsActivity : AppCompatActivity() {
label = { _ -> getString(chartView.context, R.string.statistics_diagram_threshold_average_value) },
line =
LineComponent(
color = MaterialColors.getColor(chartView.rootView, R.attr.colorCustomColor1),
fill = Fill(MaterialColors.getColor(chartView.rootView, R.attr.colorCustomColor1)),
thicknessDp = 2f,
),
labelComponent =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.patrykandpatrick.vico.core.cartesian.axis.VerticalAxis
import org.koin.core.component.KoinComponent
import org.koin.core.component.inject
import org.piepmeyer.gauguin.R
Expand Down Expand Up @@ -43,7 +42,7 @@ class StatisticsDurationDiagramFragment :
com.google.android.material.R.attr.colorSecondary,
)

val axis =
/*val axis =
binding.overallDuration.chart!!.startAxis as VerticalAxis
binding.overallDuration.chart =
Expand All @@ -56,7 +55,7 @@ class StatisticsDurationDiagramFragment :
Utils.displayableGameDuration(value.toInt().seconds)
},
),
)
)*/

binding.overallDurationMinimum.text =
Utils.displayableGameDuration(overall.solvedDurationMinimum.seconds)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ class StatisticsStreaksDiagramFragment :
streakSequence + List(8 - streakSequence.size) { 0F }
}

binding.overallStreaks.setModel(
binding.overallStreaks.model =
CartesianChartModel(
ColumnCartesianLayerModel.build {
series(filledUpStreakSequence)
},
),
)
)

return binding.root
}
Expand Down
2 changes: 1 addition & 1 deletion libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ thirdparty-konfetti = { group = "nl.dionsegijn", name = "konfetti-xml", version
thirdparty-ferriswheel = { group = "com.github.meikpiep", name = "Ferris-Wheel", version = "1.3.2" }
thirdparty-navigationdrawer = { group = "com.mikepenz", name = "materialdrawer", version = "9.0.2" }
thirdparty-balloon = { group = "com.github.skydoves", name = "balloon", version = "1.6.12" }
thirdparty-vico = { group = "com.patrykandpatrick.vico", name = "views", version = "2.0.0-beta.2" }
thirdparty-vico = { group = "com.patrykandpatrick.vico", name = "views", version = "2.0.2" }
thirdparty-androidplot = { group = "com.androidplot", name = "androidplot-core", version = "1.5.11" }
thirdparty-leakcanary = { group = "com.squareup.leakcanary", name = "leakcanary-android", version = "2.14" }

Expand Down

0 comments on commit fff803c

Please sign in to comment.