Introduction
ApexCharts.RB supports all options from ApexCharts.JS, but instead of camelCase, you can write them in snake_case.
ApexCharts.RB also provides shortcuts to some ApexCharts.JS options, such as title
. In ApexCharts.JS you would have to write
In ApexCharts.RB you can write
if you just want to add the text.
xtitle
and ytitle
are even greater shortcuts. Instead of
you can write
These options can be passed to any chart helper like <%= line_chart(series, options) %>
.
Last updated