Hi,
Earlier i was using Plotly python and discovered plotly_express recently. I liked it very much and decided to switch. This is a beautiful tool.
I am trying to create a scatter plot using plotly_express.
When executed within jupyter notebook the plot is perfect and beautiful.
import plotly_express as px
px.scatter(edf.tail(5), x=ātimestampā, y=āwattā, size=ācurrentā, facet_col=āchannelā, color=ātemperatureā)
When this same thing is served via Dash, there is error on the JavaScript āError unrecognized date NaNā. Chart with no points are displayed and side color bar indicator is missing.
If facet_col is removed, error goes away and chart without column facet is displayed, still with missing color bar indicator on side.
There seems some interplay between date parsing and facet handling.
Sample data to reproduce the problem
|deviceId|channel|timestamp|voltage|current|watt|temperature|
|40|sen-pdu-i-606|2|2019-05-27T00:06:39.565062|9.087|30.824|280.097688|-5.513|
|43|sen-pdu-i-856|5|2019-05-26T08:13:28.390696|0.689|29.941|20.629349|3.968|
|35|sen-pdu-i-1|8|2019-05-24T16:17:41|46.035|2.404|110.668140|46.498|
|328|sen-pdu-i-517|2|2019-05-26T11:58:37.898283|5.599|30.552|171.060648|-0.715|
|24|sen-pdu-i-479|2|2019-05-27T06:40:48.657658|45.578|3.237|147.535986|-1.227|
|500|sen-pdu-i-288|6|2019-05-27T02:22:01.128498|23.740|29.320|696.056800|1.268|
|107|sen-pdu-i-8|6|2019-05-25T06:47:55.410920|-0.727|31.212|22.691124|10.250|
Version information:
plotly 3.10.0 py_0 plotly
plotly_express 0.3.1 py_0 plotly
On JavaScript console
Plotly.version ā1.47.0ā