-
Notifications
You must be signed in to change notification settings - Fork 7
Second y-axis showing overlapping value/grid line #226
Comments
Based on the investigation, we came to a conclusion to set a format for axis ticks when there are multiple zero's presents on the y or y2 axis. Created a new issue internally for implementing solution. |
@AshishMotanamGurunadham how can I track the status of your internal issue? Will you post updates back to this issue? |
@kczx3 We fixed this issue in the carbon-graphs 2.18.2 version. |
Hm, I still see this occurring in some scenarios. It looks like in my original repro that you show a different number than 0. I have an example that still shows two zeros on the y2 axis though. I've updated my template on CodeSandbox to demonstrate using 2.18.2. |
@kczx3 Sorry for the inconvenience caused. Made changes in this branch to fix the issue you mentioned above. You can pull in the branch changes into your repo and see if everything is working fine. Meanwhile, we will work on releasing this issue as soon as we can. |
Apologies, but I'm having trouble pulling in that specific branch into my project to test. I'm not sure if it has to do with the multi-package repo you use or what. I tried the below: |
@kczx3 you can generate lib and dist files of the branch and you can copy it in your repo node modules under carbon-graphs(replace with branch-specific lib and dist file). Hope this one will work. |
ahhh ok. You're saying to clone and build this branch. Got it. |
@kczx3 Good to hear. Please let us know if you feel everything is ok with the changes we made. |
Thoughts?
I'll the options listed in the output to get by it. |
Can you describe the case, when it is happening. |
A little hard to describe. I've got titratable med rates displayed on the y-axis and pain scores display on the y2-axis. Here's my graph config and content data: GRAPH_DATA
CONTENT_DATA
Give it a try yourself. |
@kczx3 hope this updated branch will fix having two zeros on y or y2axis. And coming to overlapping ticks looks like it is a new bug that you can raise in here so that we can start working on it. |
@kczx3 is everything going well with the issue? Are you still seeing two zero's on y or y2 axes? |
I was out the office the last two days of last week so just getting to this. It seems those changes fix the issue with the numbers repeating (although now they aren't showing as whole integer ticks even though the data points for y2 are all integers). I can log something new for the overlapping tick marks. |
@kczx3 You cannot set ticks as integers in that position because if you do so you will end up having repeating values on axis, which will lead us back to the issue. That is the reason why we decided to show actual values on ticks in this case. |
Bug Report
Description
I am creating a Scatter graph with two y axes. The second y-axis is showing 0 twice for the dataset and I'm not sure why that is. For some reason the grid line from each y-axis isn't lining up so its drawing the 0 line twice. Maybe this always happens and it isn't noticed because they are drawing directly on top of another.
Graphs affected
Only tested Line and Scatter, but the issue seems specific to the generation of the axes and grid, not necessarily the drawing of the data itself.
Steps to Reproduce
See link to CodeSandbox below
1.
2.
3.
4.
Link to CodeSandbox
Use this template to reproduce the behavior.
Additional Context / Screenshots
Expected Behavior
I'd expect it to look more like this example that I tried to mock up.

Possible Solution
Environment
@ Mentions
@mjhenkes
The text was updated successfully, but these errors were encountered: