Closed richardags closed 1 year ago
The data should be provided in ascending date order. So the time
should be increasing from small to large.
So you should reverse the order of data array.
Based on the example price values, you will probably also want to change the default price format to display more decimal points
const candleSeries = chart.addCandlestickSeries({ priceFormat: { type: 'price', precision: 4, minMove: 0.0001 } });
@SlicedSilver thank you, I didn't know that time should be in ascendant order, it's not related on API documentation and I thought that it's arranged by default on graph.
And, thank you again for tell me about the priceFormat I really wanted to know that, I appreciate you answer.
FYI: you will get more useful warning messages in the developer console if you use the 'development' build instead of the 'production' build. It has additional checks and more helpful error messages.
Lightweight Charts™ Version:
Steps/code to reproduce:
javascript.js
index.html
Actual behavior: The graph is no painting.
Expected behavior: A normal graph painted.
CodeSandbox/JSFiddle/etc link: https://jsfiddle.net/nja80yd1/ https://jsfiddle.net/nja80yd1/ https://jsfiddle.net/nja80yd1/
Console error: