React + ecarts, draw trigonometric function

Reading heart joy 2022-05-14 14:19:53 阅读数:256

reactecartsdrawtrigonometricfunction

List of articles


Now you can finally write your own code and draw trigonometric functions .

sin

Sin The rendering of the function :
 Insert picture description here
there XY The range values are :X=[-200,200],Y=[-100,100],

1、 Deal with trigonometric functions first :

 function func(x: number) {

return Math.sin(x)
版权声明:本文为[Reading heart joy]所创,转载请带上原文链接,感谢。 https://qdmana.com/2022/134/202205141415365931.html