nohaapav / chartjs-plugin-zoom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cljsjs/chartjs-plugin-zoom

Clojure package for Zoom and pan plugin for Chart.js

https://github.com/chartjs/chartjs-plugin-zoom

Setup

To use cljsjs package from local project repo do following:

  1. In project.clj setup local repository
:repositories {"local" "file:repo"}
  1. Build package
boot package install target
  1. Deploy .jar archive to local project repo e.g.
mvn deploy:deploy-file -Dfile=chartjs-plugin-zoom-0.7.7-0.jar -DartifactId=chartjs-plugin-zoom -Dversion=0.7.7-0 -DgroupId=cljsjs -Dpackaging=jar -Durl=file:repo
  1. Finally add dependency to your maven repository
lein deps

Usage

[cljsjs/chartjs-plugin-zoom "0.7.7-0"]

This jar comes with deps.cljs as used by the Foreign Libs feature of the ClojureScript compiler. After adding the above dependency to your project you can require the packaged library like so:

(ns application.core
  (:require ["cljsjs/chartjs-plugin-zoom"]))

About


Languages

Language:Clojure 97.8%Language:JavaScript 2.2%