问题
I need to draw Linear and exponential line by using highcharts. For this, I am calling data from backend. for example data:[1, actualyear] (for actualyear I will get an value from backend).
For Linear line it accepts data in this format data:[[1, actualyear], [2, actualyear2]]. But for exponential line this format is not supporting. So i change data to integer by using parseInt() (for example: data:[1, parseInt(actualyear)],[2, aparseInt(actualyear2] ). But still it didt accept. I am not getting any error.I getting value in console window but it didt get any exponential line on chart.
The thing if i give any random number for example data:[[1, 678905]]. It accepts data and I am getting exponential line on chart.
Why this format data:[1, parseInt(actualyear)] ) is not supporting?. Any one have any ides to solve this? Please let me know.
来源:https://stackoverflow.com/questions/61304871/highchart-exponential-line