Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vicoCompose to v2 (major) #108

Closed
wants to merge 1 commit into from
Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 20, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.patrykandpatrick.vico:compose-m3 1.16.0 -> 2.0.1 age adoption passing confidence
com.patrykandpatrick.vico:compose 1.16.0 -> 2.0.1 age adoption passing confidence
com.patrykandpatrick.vico:core 1.16.0 -> 2.0.1 age adoption passing confidence

Release Notes

patrykandpatrick/vico (com.patrykandpatrick.vico:compose-m3)

v2.0.1

Overview
  • breaking changes: none
  • addressed: #​993
compose
  • An issue where the logical display density was obtained from Context instead of LocalDensity for sp-to-px conversion has been addressed. This problem caused LocalDensity-based overrides to have no effect on text scaling in CartesianCharts.

v2.0.0

This release is effectively identical to version 2.0.0-beta.7. The following compares versions 2.0.0 and 1.16.0.

Overview
Highlights

Vico 2.0.0 is the result of a sweeping redesign of the library. The key changes are highlighted below.

  • The overhauled API has a streamlined, consolidated structure—offering greater flexibility in a smaller footprint. Most notably, there’s now a single pair of chart-drawing and model-producing classes for both single- and multi-layer charts.

  • Candlestick charts have been introduced, with comprehensive candle customization and presets for filled and hollow candles.

  • Line charts now support dashed lines.

  • The new line-styling framework for line charts facilitates the creation of data-aware line and area fills, including color scales. It offers presets for single and double fills. In the latter, two separate styles are used—one above a given y value and one below it. A common use case is applying different colors for positive and negative y-values.

  • The reworked scroll and zoom systems offer precise control—with features that facilitate scrolling by a given number of x units, scrolling to a given x coordinate, setting the viewport width in x units, and more.

  • The new provider interfaces enable granular customization of chart layers. Key use cases include styling columns based on their y-values and displaying points only for selected entries in line charts.

  • With intelligent default y-ranges and y-axis label positioning, y-axes are more legible by default. First, a suitable power of 10 is inferred. Then, the y-range bounds are rounded outward to a multiple thereof, and labels are positioned at multiples of this power of 10.

  • With the new and improved built-in axis-item placers, x-axes can dynamically adjust their item spacing based on the zoom factor, preventing label truncation. There’s also a built-in step-based item placer for y-axes.

  • The redesigned marker framework provides more detailed information on the marked points, simplifying value formatting and facilitating the implementation of context-aware behavior. Thanks to these improvements, the built-in marker’s default formatter now intelligently determines when to sum values and when to only list them individually.

  • The expanded extra framework enables model-synchronized updates in multiple new areas.

  • Series values are now stored using Double instead of Float, eliminating the need for most range- and precision-reducing transformations, especially for Unix timestamps.

  • The new, more powerful cache mechanism boosts drawing performance. It retains far more reusable data between frames and, in addition, can share it between multiple instances of the same component.

  • For Jetpack Compose, stability-related enhancements have been made, facilitating composable skipping and thus improving performance.

  • The new defaults offer a refreshed, more versatile appearance out of the box.

  • The expanded, reorganized documentation provides more comprehensive guidance. The sample app has been restructured for clarity, and the all-new sample charts visualize real-world data, making them a more practical reference. Enhancements will continue to be made in these areas.

Thank you for your valuable feedback, which helped shape Vico 2.0.0.

Next steps
Vico 1 support

Bug reports for Vico 1 will be accepted until January 31, 2026. Bug fixes will be provided until February 28, 2026.

v1.16.1

Overview
  • breaking changes: none
  • addressed: #​993
compose
  • An issue where the logical display density was obtained from Context instead of LocalDensity for sp-to-px conversion has been addressed. This problem caused LocalDensity-based overrides to have no effect on text scaling in charts.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-vicocompose branch from ed779ea to 6f94e60 Compare January 23, 2025 22:43
@dimrnhhh dimrnhhh closed this Feb 4, 2025
Copy link
Contributor Author

renovate bot commented Feb 4, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/major-vicocompose branch February 4, 2025 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant