Highchart -Exponential line

感情迁移 提交于 2020-04-30 08:45:51

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!