can anyone recall what caused this error? I seem to recall it required a downgrade, perhaps of hoplon?
core.cljs:269 Error: <line> attribute y1: Expected length, "NaN".
@vigilancetech what version are you using?
Could you show us the line throwing the error?
@flyboarder hoplon 7.2.0. This is what shows up in the js console:
core.cljs:269 Error: <line> attribute y1: Expected length, "NaN".
(anonymous) @ core.cljs:269
hoplon$core$_set_attributes_BANG_ @ core.cljs:209
hoplon.core.set_attributes_BANG_.cljs$core$IFn$_invoke$arity$2 @ core.cljs:317
(anonymous) @ core.cljs:597
cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$3 @ core.cljs:10894
(anonymous) @ core.cljs:593
cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$3 @ core.cljs:10894
hoplon$core$_do_BANG_ @ core.cljs:71
(anonymous) @ core.cljs:583
hoplon.core.do_watch.cljs$core$IFn$_invoke$arity$3 @ core.cljs:100
hoplon.core.do_watch.cljs$core$IFn$_invoke$arity$2 @ core.cljs:97
(anonymous) @ core.cljs:583
cljs.core.MultiFn.cljs$core$IFn$_invoke$arity$3 @ core.cljs:10894
hoplon$core$_elem_BANG_ @ core.cljs:81
cljs.core.Keyword.hoplon$core$IHoplonAttribute$_attribute_BANG_$arity$3 @ core.cljs:197
hoplon$core$_attribute_BANG_ @ core.cljs:189
(anonymous) @ core.cljs:345
(anonymous) @ core.cljs:6889
cljs.core.PersistentArrayMap.cljs$core$IKVReduce$_kv_reduce$arity$3 @ core.cljs:6889
cljs$core$_kv_reduce @ core.cljs:700
cljs$core$reduce_kv @ core.cljs:2548
hoplon$core$add_attributes_BANG_ @ core.cljs:345
hoplon.core.invoke_BANG_.cljs$core$IFn$_invoke$arity$variadic @ core.cljs:358
Element.cljs$core$IFn$_invoke$arity$2 @ core.cljs:375
G__16859__delegate @ svg.cljs:15
G__16859 @ svg.cljs:11
(anonymous) @ visualizations.cljs:56
(anonymous) @ core.cljs:650
(anonymous) @ core.cljs:650
hoplon.core.do_watch.cljs$core$IFn$_invoke$arity$3 @ core.cljs:100
hoplon.core.do_watch.cljs$core$IFn$_invoke$arity$2 @ core.cljs:97
hoplon$core$loop_tpl_STAR_ @ core.cljs:644
guardian$dashboard$visualizations$histogram__delegate @ visualizations.cljs:54
guardian$dashboard$system_view @ dashboard.cljs:546
(anonymous) @ dashboard.cljs:750
cljs.core.Delay.cljs$core$IDeref$_deref$arity$1 @ core.cljs:10392
cljs$core$_deref @ core.cljs:673
cljs$core$deref @ core.cljs:1449
(anonymous) @ dashboard.cljs:749
javelin.core.set_formula_BANG__STAR_.this$.thunk @ core.cljs:83
(anonymous) @ core.cljs:24
javelin$core$propagate_STAR_ @ core.cljs:24
javelin$core$propagate_BANG_ @ core.cljs:43
javelin$core$set_formula_BANG__STAR_ @ core.cljs:85
javelin.core.formula.cljs$core$IFn$_invoke$arity$2 @ core.cljs:193
(anonymous) @ dashboard.cljs:749
(anonymous) @ dashboard.cljs:749
(anonymous) @ dashboard.cljs:748
cljs.core.Delay.cljs$core$IDeref$_deref$arity$1 @ core.cljs:10392
cljs$core$_deref @ core.cljs:673
cljs$core$deref @ core.cljs:1449
(anonymous) @ dashboard.cljs:731
javelin.core.set_formula_BANG__STAR_.this$.thunk @ core.cljs:83
(anonymous) @ core.cljs:24
javelin$core$propagate_STAR_ @ core.cljs:24
javelin$core$propagate_BANG_ @ core.cljs:43
javelin.core.Cell.cljs$core$IReset$_reset_BANG_$arity$2 @ core.cljs:122
cljs$core$_reset_BANG_ @ core.cljs:851
cljs$core$reset_BANG_ @ core.cljs:4441
javelin.core.Cell.cljs$core$ISwap$_swap_BANG_$arity$2 @ core.cljs:127
cljs.core._swap_BANG_.cljs$core$IFn$_invoke$arity$2 @ core.cljs:856
cljs.core.swap_BANG_.cljs$core$IFn$_invoke$arity$2 @ core.cljs:4466
(anonymous) @ dashboard.cljs:104
javelin.core.Cell.cljs$core$IReset$_reset_BANG_$arity$2 @ core.cljs:121
cljs$core$_reset_BANG_ @ core.cljs:851
cljs$core$reset_BANG_ @ core.cljs:4441
(anonymous)
and here's the line 269 from core.cljs (surrounded by a couple on each side in context):
(if-not v
(.removeAttribute e k)
(.setAttribute e k (if (true? v) k v)))))))
(-set-styles!
([this kvs]
@vigilancetech are you using Hoplon/UI?
that’s probably what’s causing it
@flyboarder yes, an older fork. Guess I need to merge
I’m not sure what jumblerg did to Hoplon core but UI is experimental and hasn’t had recent activity to align with 7.1/7.2
I would recommend using one of my css ui libs
Uikit-hl has the most recent development
Semui-hl is also fairly stable
ok, thx. I'll check them out
@flyboarder what is the difference between the two?
They use different css libraries for the styles