-
Hi, The following code allows you to create your own candlestick chart from lightweightcharts using your own financial dataset (csv file): HTML file: JS file: const getData = async () => { const displayChart = async () => { const domElement = document.getElementById('tvchart'); // Calculate the time range of the data // Set the visible time range to include a buffer on both ends of the data range displayChart(); I have used it with my own financial dataset / csv file and it works. However, I have now used it to generate a candlestick chart using non-financial data from a csv file, but it doesn't work. It generates a chart that is blank (see screenshot attached). I have also attached a screenshot of the dataset; it is a very small dataset - perhaps this is the issue? there aren't enough values to plot? Please help. Thanks PS the data has values between 900 and 1150. The original data is between 0.9 and 1.15 but I multiplied it by 1000 because I thought perhaps the variation in the high and low values were too small to be seen on the chart, which is why the chart displays nothing. but im not sure now why nothing is appearing on the chart. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
ANSWER: the data has values between 900 and 1150. The original data is between 0.9 and 1.15 but I multiplied it by 1000 because I thought perhaps the variation in the high and low values was too small to be seen on the chart, which is why the chart displays no data, HOWEVER, I decided to change the data to its original values (so 1000x smaller) and now the data appears on the graph (: |
Beta Was this translation helpful? Give feedback.
ANSWER: the data has values between 900 and 1150. The original data is between 0.9 and 1.15 but I multiplied it by 1000 because I thought perhaps the variation in the high and low values was too small to be seen on the chart, which is why the chart displays no data, HOWEVER, I decided to change the data to its original values (so 1000x smaller) and now the data appears on the graph (: