GitHub above, find a plug-in, the specific method of use is not very clear, is there a boss who is familiar with this aspect to give advice?

plug-in address https://github.com/chxj1992/k..
now my project is built by vue-cli. Ask for advice on how to use it, which configuration files to introduce, how to introduce, and so on.

Mar.14,2021

https://github.com/chxj1992/k.
project documentation is very clear (don't tell me you can't read Chinese)
install

$ npm install kline 

use

//
  <div id="kline_container"></div>
//kline
 import Kline from 'kline';
//

 var kline = new Kline({
        element: "-sharpkline_container",
        symbol: "BTC",
        symbolName: "",
        type: "poll", // poll/stomp
        url: "http://127.0.0.1:8080/mock.json"
    });
    kline.draw();

just open your page

the only thing you need to pay attention to is probably this url. You refer to the data in the example of given by others

.
Menu