# LiveGantt
**live gantt charts adapter for live_charts (https://apexcharts.com/apexgantt/) **
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `live_gantt` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:live_gantt, ">= 0.0.0"}
]
end
```
Then include the LiveGantt hooks in your `app.js`:
```javascript
// Import the JS file
import LiveGantt from "live_gantt"
// Include the hooks
let liveSocket = new LiveSocket("/live", Socket, {
params: {_csrf_token: csrfToken},
hooks: {
// your other hooks...
// e.g. SomeCustomHook,
// Expand LiveCharts hooks at the end
...LiveGantt.Hooks,
},
});
```
## Configuration
```elixir
# config/config.exs
config :live_charts,
adapter: LiveGantt.Adapter,
json_library: Jason
```
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at <https://hexdocs.pm/live_gantt>.