Clojure package for Zoom and pan plugin for Chart.js
https://github.com/chartjs/chartjs-plugin-zoom
To use cljsjs package from local project repo do following:
- In
project.clj
setup local repository
:repositories {"local" "file:repo"}
- Build package
boot package install target
- 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
- Finally add dependency to your maven repository
lein deps
[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"]))