|
Hello, I would like to remive the axis lines/grid from a chart but retain the annotation. I've tried
... and this removed the lines but also the values on the chart axis. Any advice? Many thanks! |
|
Can you show your code how you are adding |
|
Sure, below is the chart , if I add
Under the final
I no longer see the month label.
FYI this is aa vertical bar chart i made by swapping the X/Y axis. |
|
I tried your code, using some sample data I created, and I tried several variations of the chart x & y axes being hidden or visible. I could not reproduce the observation you reported. The annotation remain visible. I even tried changing the position of the annotation, and it remained visible even when I modified the visibility of the x & y axes. Not sure what to suggest at the moment, unless someelse experiences something similar to your observation. Here is my version of your code, that I used. I replaced some of your calculated parameters with fixed values, adding your 'Highest" and "Lowest' colours into the 'assets'.
|
|
hum, thank you very much. I'll need to review in that case because I certanly do not see the annotation. I'm just getting used to charts. I appriciate your help! I do have have another charts question, i'll put that in a new thread. |
|
Here you go. When I add
I do not see the month. First image as per code above, second image with
|
SPONSORED Still waiting on your CI build? Speed it up ~3x with Blaze - change one line, pay less, keep your existing GitHub workflows. First 25 HWS readers to use code HACKING at checkout get 50% off the first year. Try it now for free!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.