This is my LineChart component. Chart start time and end time changes periodically in its parent component. If there is no change in data then chart should not re-rendered. But Chart re-rendered then give an error “a.getTime is not a function”
I used debug point in code. After chart rendered first time, when sTime and eTime changed by its parent component, control goes to componentWillReceiveProps then it calls request method. After the post call control goes to render return method. Then come back to post statement of request method then reach to second statement. At that time it show an error “a.getTime is not a function” where chart is drawn.