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

unable to add ChartModelProducer<ChartEntryModel> #442

Closed
ahmed2146 opened this issue Oct 18, 2023 · 3 comments
Closed

unable to add ChartModelProducer<ChartEntryModel> #442

ahmed2146 opened this issue Oct 18, 2023 · 3 comments

Comments

@ahmed2146
Copy link

How to reproduce

val chartEntryModelProducer1 = ChartEntryModelProducer(myNumber)
val chartEntryModelProducer2 = ChartEntryModelProducer(otherNumber)
val barGraphData:ChartModelProducer = chartEntryModelProducer1 + chartEntryModelProducer2

error in "+"

Observed behavior

Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public operator fun TypeVariable(Model).plus(other: TypeVariable(Model)): ComposedChartEntryModel defined in com.patrykandpatrick.vico.core.entry.composed

Expected behavior

this behavior is observed after
implementation 'com.patrykandpatrick.vico:compose-m3:1.9.2'
implementation 'com.patrykandpatrick.vico:core:1.9.2'
these versions

Vico version(s)

Latest stable version, Latest unstable version

Android version(s)

implementation 'com.patrykandpatrick.vico:compose-m3:1.13.0-alpha.8' implementation 'com.patrykandpatrick.vico:core:1.13.0-alpha.8'

Additional information

No response

@patrickmichalik
Copy link
Member

patrickmichalik commented Oct 18, 2023

Hello! As described in the the Vico 1.13.0 Alpha 1 release notes, ChartEntryModelProducers can no longer be combined. This mechanism was intrinsically problematic—it introduced synchronization-related issues. The release notes outline how to use the new ComposedChartEntryModelProducer. This isn’t a bug, so I’ll be closing the issue. If you have any questions, feel free to let me know.

@patrickmichalik patrickmichalik closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2023
@ahmed2146
Copy link
Author

Thank you so much :)

@patrickmichalik
Copy link
Member

You’re welcome!

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

No branches or pull requests

2 participants