mihai-ciupina
Need help installing chart package
Hi,
I’m having trouble installing some chart package. Either one is fine
https://www.highcharts.com/demo/line-basic
or
or you can suggest one.
So it works when simply adding this lines
<script src=“https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js”></script>
<script src=“https://code.highcharts.com/highcharts.js”></script>
but when
npm install xxx --save
require("xxx")
import("xxx")
I just cannot succed. (I previously installed jQuery and other packages with succes).
I played with the vendor folder but I’m, just not that qualified to work it out.
So the question is, how can I install chartjs or highcharts?
Thanks for help.
First Post!
dokuzbir
import “chart.js” should work without problem. What kind of error you get in browser console ?
Last Post!
dokuzbir
your chart codes in app.js or in page with script tag ?
Can you look if chart.js imported in app.js, localhost:4000/js/app.js
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









