Packages

Create beautiful JavaScript charts with one line of Elixir

Current section

7 Versions

Jump to

Compare versions

6 files changed
+56 additions
-10 deletions
  @@ -1,3 +1,23 @@
1 + ### 0.2.0
2 +
3 + * Support all Chartkick chart options; adds
4 + - curve
5 + - dataset
6 + - decimal
7 + - donut
8 + - download
9 + - label
10 + - legend
11 + - library
12 + - messages
13 + - points
14 + - prefix
15 + - refresh
16 + - suffix
17 + - thousands
18 + - title
19 + - xtype
20 +
1 21 ### 0.1.0
2 22
3 23 * See [PR#3](https://github.com/buren/chartkick-ex/pull/3) - Thank you @mbenatti and @nimish-mehta
  @@ -0,0 +1,21 @@
1 + The MIT License (MIT)
2 +
3 + Copyright (c) 2018 Jacob Burenstam Linder
4 +
5 + Permission is hereby granted, free of charge, to any person obtaining a copy
6 + of this software and associated documentation files (the "Software"), to deal
7 + in the Software without restriction, including without limitation the rights
8 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 + copies of the Software, and to permit persons to whom the Software is
10 + furnished to do so, subject to the following conditions:
11 +
12 + The above copyright notice and this permission notice shall be included in
13 + all copies or substantial portions of the Software.
14 +
15 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 + THE SOFTWARE.
  @@ -80,6 +80,8 @@ And respond with data as JSON.
80 80
81 81 ### Options
82 82
83 + :information_source: _This implementation aims to support all options that [chartkick.js](https://github.com/ankane/chartkick.js) supports. If there are any missing, please open an issue or a PR._
84 +
83 85 Id and height
84 86
85 87 ```elixir
  @@ -154,7 +156,7 @@ Chartkick.line_chart "{
154 156 Add the following to your project :deps list:
155 157
156 158 ```elixir
157 - {:chartkick, "~>0.1.0"}
159 + {:chartkick, "~>0.2.0"}
158 160 ```
159 161
160 162 By default when you render a chart it will return both the HTML-element and JS that initializes the chart.
  @@ -197,9 +199,12 @@ To specify a language for Google Charts, add:
197 199
198 200 Check out
199 201
200 - * JS [chartkick.js](https://github.com/ankane/chartkick.js)
201 - * Ruby [chartkick](https://github.com/ankane/chartkick)
202 - * Python [chartkick.py](https://github.com/mher/chartkick.py)
202 + * [JavaScript](https://github.com/ankane/chartkick.js)
203 + - [React](https://github.com/yfractal/chartkick)
204 + - [Vue.js](https://github.com/yfractal/chartkick)
205 + * [Ruby](https://github.com/ankane/chartkick)
206 + * [Python](https://github.com/mher/chartkick.py)
207 + * [Clojure](https://github.com/yfractal/chartkick)
203 208
204 209 ## History
  @@ -5,7 +5,7 @@
5 5 {<<"elixir">>,<<"~> 1.0">>}.
6 6 {<<"files">>,
7 7 [<<"lib">>,<<"lib/chartkick.ex">>,<<"mix.exs">>,<<"README.md">>,
8 - <<"CHANGELOG.md">>]}.
8 + <<"LICENSE">>,<<"CHANGELOG.md">>]}.
9 9 {<<"licenses">>,[<<"MIT">>]}.
10 10 {<<"links">>,[{<<"GitHub">>,<<"https://github.com/buren/chartkick-ex">>}]}.
11 11 {<<"maintainers">>,[<<"Jacob Burenstam">>]}.
  @@ -21,4 +21,4 @@
21 21 {<<"optional">>,false},
22 22 {<<"repository">>,<<"hexpm">>},
23 23 {<<"requirement">>,<<"~> 1.1">>}]]}.
24 - {<<"version">>,<<"0.1.0">>}.
24 + {<<"version">>,<<"0.2.0">>}.
  @@ -44,7 +44,7 @@ defmodule Chartkick do
44 44 ~w(id height)a
45 45 )
46 46
47 - @options ~w(min max colors stacked discrete xtitle ytitle)a
47 + @options ~w(colors curve dataset decimal discrete donut download label legend library max messages min points prefix refresh stacked suffix thousands title xtitle xtype ytitle)a
48 48 defp options_json(opts) do
49 49 opts
50 50 |> Keyword.take(@options)
Loading more files…