#dioxus_charts

12 messages · Page 1 of 1 (latest)

deep elm
#

Another (hopefully) quick rust/dioxus question: is dioxus_charts depending on dioxus 0.3.2 an issue for me trying to use it? I'm getting an error I don't understand.

18 |       cx.render(rsx! {
   |  _______________-
19 | |         div {
20 | |             LineChart {
   | |             ^^^^^^^^^ expected fn pointer, found fn item
21 | |                 padding_top: 30,
...  |
55 | |         footer::Footer {}
56 | |     })
   | |_____- arguments to this function are incorrect

I dug into the signature of LineChart, and it looks like anything I'd expect. I copied the hardcoded example into my codebase and this is the error I got.

merry needle
#

You could try running cargo tree

deep elm
#

Anything in particular I'm looking for?

 179   │ ├── dioxus-charts v0.1.2
 180   │ │   ├── dioxus v0.3.2
 181   │ │   │   ├── dioxus-core v0.3.3
merry needle
#

Which will not work with your application if you are using dioxus = 0.4

#

You could fork it and upgrade it or try to override the dependency in your cargo.toml

deep elm
#

Sweet, thank you for confirming my suspicions! I'm going to try and fork it to upgrade it

frosty warren
#

We could maintain a fork in #dioxus-community

#

or ask for a transfer, that would do too

deep elm
#

I thought you might get involved 😄 I'm going to try to get it working over the weekend on my fork. Can try in parallel to raise an issue and see if the maintainer transfer

frosty warren
#

oki 👀 Feel free to ping me, I'm @marc2332 on github