Skip to content

Commit

Permalink
Updated readme [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Nov 12, 2024
1 parent 7f7628c commit a1d4820
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ Multiple series

```erb
<%= line_chart [
{name: "Workout", data: {"2021-01-01" => 3, "2021-01-02" => 4}},
{name: "Call parents", data: {"2021-01-01" => 5, "2021-01-02" => 3}}
{name: "Workout", data: {"2025-01-01" => 3, "2025-01-02" => 4}},
{name: "Call parents", data: {"2025-01-01" => 5, "2025-01-02" => 3}}
] %>
```

Expand All @@ -143,13 +143,13 @@ Data can be a hash, array, or URL.
#### Hash

```erb
<%= line_chart({"2021-01-01" => 2, "2021-01-02" => 3}) %>
<%= line_chart({"2025-01-01" => 2, "2025-01-02" => 3}) %>
```

#### Array

```erb
<%= line_chart [["2021-01-01", 2], ["2021-01-02", 3]] %>
<%= line_chart [["2025-01-01", 2], ["2025-01-02", 3]] %>
```

#### URL
Expand Down Expand Up @@ -195,7 +195,7 @@ Min and max values
Min and max for x-axis - *Chart.js*

```erb
<%= line_chart data, xmin: "2021-01-01", xmax: "2022-01-01" %>
<%= line_chart data, xmin: "2025-01-01", xmax: "2025-02-01" %>
```

Colors
Expand Down

0 comments on commit a1d4820

Please sign in to comment.