You must be logged in to post your query.
Home › Forums › StockChart Support › weekends showing to charts
The stockcharts are sold as a viable option for displaying stock data.
However, the weekends show on the graphs as gaps which doesn’t make sense at all.
We are not passing in weekend data into the array for the charts however the charts still show that date on the x axis and it shows a gap.
Completely unusable by any serious trader.
You can use customBreaks for removing weekend gap from the chart. With the use of scale breaks, there are possibilities that the axis labels may appear at an unequal interval and they may overlap with each other. You can overcome this by using stripLines for labels.
Please take a look at this JSFiddle for an example on the same.
When I try this example then I get this error.
What am I doing wrong?
Cannot set properties of undefined (‘custombreaks’)
The JSFiddle shared seems to be working fine without any error. Based on the error that you are getting, you might be passing it as ‘custombreaks’ instead of ‘customBreaks’. All the chart properties are case-sensitive. Hence passing it as customBreaks should work fine. Please refer documentation page for more information & live-examples.
If you are still facing issue, kindly create JSFiddle reproducing the issue you are facing & share it with us. From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue at our end or not able to understand the exact requirements or due to the variation in chart-options being used by you and us. Because of these reasons we expect you so share JSFiddle along with sample data which helps us run it at our end to understand the use case and help you resolve.
I have used the example you provided (which uses a line chart) on my candlestick chart
I have copied the code but see different results in that the navigator view still shows the weekend gaps whereas the main chart is now fine.
Why is this happening?
I can’t see to add the image or link to this post – everytime I try to add a google drive link of the screen sot then it fails to post the response.
Actually to get around this, have converted the navigator to line instead candlesticks and that hides the gaps :-)
Glad that you were able to make it work. If you have any further queries or facing any other issues, kindly create a JSFiddle with your use case and share it with us so that we can look into the code / chart-options being used, understand the scenario better and help you out.
https://drive.google.com/file/d/1gL9goC6_cDPSdEkiEQh_4PEzcMNZuhZC/view?usp=sharing is the link
Can you kindly create JSFiddle reproducing the issue you are facing & share it with us so that we can look into the code / chart-options being used, understand the scenario better and help you out?
From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact scenario, or the solution that we provide may not work properly due to the variation in chart options being used by you and us.
Having a JSFiddle helps us in figuring out the issue and suggesting an appropriate solution accordingly.
You must be logged in to reply to this topic. Login/Register