Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data loading issue and width problem #86

Open
jitendraas opened this issue Sep 29, 2018 · 2 comments
Open

Data loading issue and width problem #86

jitendraas opened this issue Sep 29, 2018 · 2 comments

Comments

@jitendraas
Copy link

I have an issue for data loading for this I directly pass the data in data property of kline chart but it unable to load graph it just showing Loading.... Should it required to fetch graph data from GET url? If I directly append data in kline so what was the issue for not viewing, reply. Data is showing I know its not complete but it unable to view anything in chart panel.
screenshot from 2018-09-29 16-12-09

And for the width for stylying graph to 100% is not making change it does constant width and height that defines while initialization of graph properties, how am I fix this?.

@xuechunpeng01
Copy link

How did you solve the problem?

@jitendraas
Copy link
Author

Following code base which I have used,

  var kline = new Kline({
    element: "#kline_container",
    width: 1200,
    height: 650,
    theme: 'dark', // light/dark
    language: 'en-us', // zh-cn/en-us/zh-tw
    ranges: ["1w", "1d", "1h", "30m", "15m", "5m", "1m", "line"],
    symbol: "BTC",
    symbolName: "BTC/USD",
    type: "poll", // poll/socket
    url: "/assets/mock.json",
    limit: 1000,
    intervalTime: 5000,
    debug: true,
    showTrade: true,
    disableFirebase: true,
    onResize: function(width, height) {
        console.log("chart resized: " + width + " " + height);
    }
});

kline.draw();
kline.toggleTrade();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants