T
T
Timofey Mikhailov2018-09-03 07:51:46
JavaScript
Timofey Mikhailov, 2018-09-03 07:51:46

Any advice on how to build the simplest graph?

Hello.
Can you please tell me how to build a graph on the site?
The simplest ... With two axes X and Y. Well, a line connecting the specified coordinates ...
I use:
- JQuery
- Bootstrap
Thanks!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2018-09-03
@JimmiJanger

Hello,
try the charts or rgraph library

B
bini1988, 2018-09-03
@bini1988

Use svg https://css-tricks.com/how-to-make-charts-with-svg/

S
Sergey Sokolov, 2018-09-03
@sergiks

Without libraries, as I understand from the comments of the TS, you can simply draw a graph in SVG and place it on the site.
This can be done in Adobe Illustrator or another vector editor and output the finished SVG from there.
You can also build a graph from an array of coordinates without libraries, by understanding the simple syntax of SVG and writing simple code yourself . You will need to add line elements .
It is more convenient, with an eye to the future, to use an additional, non-jQuery and non-Bootstrap library. Ideally deal with D3js . There, scaling the axes for the data, and dynamic updating of the graph according to the data and interactivity - everything is easily coded, but you have to invest a couple of hours in training.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question