You must be logged in to post your query.
Home › Forums › Report Bugs › Single row barcharts showing extra 1, -1 rows
I filed this in Chart Support but I think it is really a Bug…
I am seeing a strange thing when the data we retrieve consists of a single row being shown on a barchart. This does not happen if the row count is greater than 1. We see a row above the bar with a X label of “-1” and a row beneath the bar with X label of “1”.
Is this a bug or perhaps some leftover code meant to be removed for the single row case?
I have screenshots to share if needed.
The code it too complex to post or fiddle.
In case of numeric axis chart, labels will be shown at every interval of the axis. Because of this, it’s showing 1 & -1. If there is just one datapoint and your requirement is to show label just for datapoint, you can use category axis (use label instead of x-value). Please take a look at this JSFiddle for an example.
Considering this as duplicate of Single data row barcharts showing 1, -1 rows, hence closing the same.
Thanks for this useful information.
In my case I was using the label: and y: syntax but in my axisX: code I had interval: 1 specified.
Removing that seems to have solved the issue.
You must be logged in to reply to this topic. Login/Register