Lisp-Stat/plot

camelCase axis params problem

Closed this issue · 2 comments

Hello, I have a problem with the axis parameters.
"x": {"field": "a", "type": "nominal", "axis": {"labelAngle": 0, "titleFontSize": 20, "labelFontSize":20}},

labelAngle, titleFontSize, labelFontSize are camelCase, but when I use them from

(write-vega-spec (vega:defplot simple-line-plot .... :encoding (:x (:field ,(assoc-path html '("eje-x")) type ,(assoc-path html '("eje-x-type")) :axis (:labelAngle 0 :titleFontSize 20 :labelFontSize 20))

They are all lowercase and it doesn't work
output
"x": { "field": "fecha", "type": "temporal", "axis": {"labelangle": 0, "titlefontsize": 20, "labelfontsize": 20} },

The camelcase to lisp format, backwards and forwards, is automatic. What happens when you use, for example, label-angle?

:encoding ( :x (:field ,(assoc-path html '("eje-x")) :type ,(assoc-path html '("eje-x-type")) :axis (:label-angle 0 :title-font-size 20 :label-font-size 20)) :y (:field ,(assoc-path html '("eje-y")) :type ,(assoc-path html '("eje-y-type")))
works!! Thank you!!