You must be logged in to post your query.
Home › Forums › Chart Support › remove gaps in between graphs
hi so i want to remove gaps between this bars and i getting data only in that form
https://jsfiddle.net/93d4br5n/ you can follow this js fiddle link for code
@nidhi_dew,
It seems like you are passing timestamp in seconds whereas JavaScript uses milliseconds as timestamp. Hence you need to multiply the Unix timestamp by 1000 to convert it to JavaScript timestamp. You can add scaleBreaks to remove unnecessary regions with few lines of code as shown in the below code snippet.
scaleBreaks: { customBreaks: [{ startValue: 1631341054000, endValue: 1631343358000, spacing: 0, type :"straight", }, { startValue: 1631345066000, endValue: 1631345183000, spacing: 0, type :"straight", }], },
Also take a look at this updated JSFiddle for complete code.
— Ranjitha R Team CanvasJS
You must be logged in to reply to this topic. Login/Register