Writing a waveform display program (HTML) using AnyChart.
I was researching and there was a program that reads a CSV file on the net and turns it into a bar graph, but I want to read a CSV file saved on my computer and draw it like a sine wave . I don't know a program that reads a CSV file with a waveform like a sine wave.
Error message
Applicable source code
The source of HTML.
Please provide more detailed information here.
-
Answer # 1
-
Answer # 2
The computer where the CSV file is stored is the same as the computer running the web browser displaying the HTML file as written in the question. If it is the same thing, I think that it is better to set up (run) the web server on that personal computer.
If you are using a Mac or linux-based OS, a web server program called Apache will be included from the beginning, and if you are using a Windows computer, a web server program called IIS will be included from the beginning. Is easy to run (there are plenty of web pages that describe how to run Apache and IIS)
If you put a copy of the CSV file saved on your computer (assuming the file name is "abc.csv") under the directory where the Web server data will be placed, you can use "https: // localhost/It will be accessible with the URL "abc.csv".
With these preparations,
In the question HTML
anychart.data.loadCsvFile ("https://cdn.anychart.com/charts-data/data_csv.csv", function (data) {
anychart.data.loadCsvFile ("https: //localhost/abc.csv", function (data) {
The action of "reading CSV file on the net and making it into a bar graph" is
It should change to "Read a CSV file on your PC and make it a bar graph".===
Related articles
- html - i don't know how to specify an element
- python - i don't know how to deal with the error
- python - i don't know how to do css select in bs4
- reactjs - [react] i don't know how to pass arguments
- [vba] i don't know how to log in automatically from the next time [keep login]
- python - i don't know how to use wait_for_motion () and wait_for_no_motion ()
- i don't know how to upload php
- java - i don't know how to resolve the error
- html - i don't know the calc () function
- i don't know how to use the new features of c ++ 20 with cmake
- i don't know how to fix it due to a recursion error
- facebook - i don't know how to set the callback url to the app!
- c # - i don't know how to call aync/awit
- c # - i don't know how to learn net framework
- [wordpress] i don't know how to move pages
- sql - i don't know how to output the whole
- python - i don't know how to adapt the sample code
- i don't know how to change the java formula
- python - i don't know how to use settingjson
- html - i don't know the position of the box and the position of the border
I tried to rewrite the file API that was not standardized.
The local file specified in the dialog is read and drawn.