Chart.js canvas resize

前端 未结 13 1172
北海茫月
北海茫月 2020-11-30 23:39

In (Android WebView HTML5 canvas error) i posted a question regarding plotting graphs using Graph.js library. The problem i have now is that if i call the function to plot t

13条回答
  •  旧巷少年郎
    2020-12-01 00:07

    I had the same kind of scaling issue's using Angular CLI. Was able to get it working by removing this line from the index.html:

    
    

    and then in the angular-cli.json file, in the scripts section, using this:

    "scripts": ["../node_modules/chart.js/dist/Chart.bundle.min.js"]
    

    Source: mikebarr58

提交回复
热议问题