Closed BogdanCatana28 closed 4 months ago
Ok thanks for pointing this out looking into it
I've found that this happens when I try to run:
pc.chart(
pc.bar(
data=pc.data(
"bar",
x=state.chart_months,
y=state.chart_values,
),
),
It doesn't process the variables that I've set for state.chart_months
and state.chart_values
unless I make them static values (i.e. x=['Jan'], y=[13]
Our graphing structure has changed now - closing this issue for now.
Describe the bug raise TypeError( TypeError: State vars must be primitive Python types, or subclasses of pc.Base. Got var of type <class 'pydantic.main.ModelMetaclass'>. I think there is an issue with the processing of computed vars at runtime when you want them passed as inputs for other components(methods)
To Reproduce Steps to reproduce the behavior:
Expected behavior I am trying to implement the factory method design pattern so to do this, i am writing the 3 classes that return me the dataFrame objects which i will use in the chart_gen method in my ChartsState class where i just want to create an object based on those 3 classes using the factory_chart method and then call the method from the specific class to pass the data it is returning to the plotly to display a chart
Specifics (please complete the following information):
Additional context Add any other context about the problem here.