Skip to content

Commit f3c0384

Browse files
committed
update Vega-Lite backend geom mapping
1 parent 4c93337 commit f3c0384

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/ggplotnim/ggplot_vega.nim

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ const vegaLiteTmpl = """
1111
"""
1212

1313
let mapping = { "title" : "title" }.toTable
14-
let geom_mapping = { "geom_point" : "point",
15-
"geom_rect" : "rect",
16-
"geom_line" : "line",
17-
"geom_histogram" : "bar",
18-
"geom_bar" : "bar",
19-
"geom_freqpoly" : "line",
20-
"geom_tile" : "rect",
21-
"geom_text" : "text",
22-
"geom_raster" : "rect", # or image?,
23-
"geom_errorbar" : "errorbar" # non trivial because they are split in vega
14+
let geom_mapping = { "point" : "point",
15+
"rect" : "rect",
16+
"line" : "line",
17+
"histogram" : "bar",
18+
"bar" : "bar",
19+
"freqpoly" : "line",
20+
"tile" : "rect",
21+
"text" : "text",
22+
"raster" : "rect", # or image?,
23+
"errorbar" : "errorbar" # non trivial because they are split in vega
2424
}.toTable
2525

2626
template toVegaField(f: string): string =

0 commit comments

Comments
 (0)