LiveGantt

live gantt charts adapter for live_charts (https://apexcharts.com/apexgantt/)

Installation

If available in Hex, the package can be installed by adding live_gantt to your list of dependencies in mix.exs:

def deps do
  [
    {:live_gantt, ">= 0.0.0"}
  ]
end

Then include the LiveGantt hooks in your app.js:

// 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

# config/config.exs

config :live_charts,
  adapter: LiveGantt.Adapter,
  json_library: Jason

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/live_gantt.