I am using a very nice gem to create charts using Ruby on Rails. But I am struggling to make a line chart with straight lines connecting the dots. It always creates curves. I need straight lines. Also I want to know if someone knows how to remove the dots from the line. I could not find a way to do it.
Chartkick.options = {
height: "300px",
min: -5,
max: 10,
discrete: true,
}
<% series_a = {"10" => -5, "11" => 9,"12" => 3,"13" => -1,"14" => 4,"15" => -2,"16" => -4} %>
<%= line_chart [{name: "Series A", data: series_a}] %>