-
Hi, Here is the code to plot a static candlestick lightweight chart using your own csv file: html file: <title>Document</title> <script src="https://unpkg.com/lightweight-charts/dist/lightweight-charts.standalone.production.js"></script> <script src="OHLCV_CSV_STATIC.js"></script>js file: // getData(); const displayChart = async () => { const domElement = document.getElementById('tvchart'); displayChart(); When I run the code it shows a beautiful candlestick chart in my browser (see image attached), however, the only thing that's missing is the y-axis. Does anyone know how I can get the y-axis to plot with the values on it? I have attached another image of a candlestick chart which DOES show the y-axis. This is what I want on my chart. The code that produces the candlestick chart with the y-axis shown on the chart doesn't import the data from a csv file, it just lists the data as a long list of data points inside brackets (), whereas in the code above I have imported the data as a csv file. I am writing my code on Visual Studio Code on Mac. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
I can see the y-axis on the right hand side of the chart, in your image. |
Beta Was this translation helpful? Give feedback.
I imported the data and the y-axis is there.
Here the codesandbox: link