You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to build a Chart for my Swift iOS App where I can track when I lifted Y-amounts of weights in the gym. Therefore I neet dates on the X-Axis and some weight-values on the Y-Axis. I use timestamps for the X-Axis. On the X-Axis Labels I don't want to see the exact dates when I trained but rather the rough span of the months. With the formatter I made it that the months show up on the labels, but the labels/the corresponding vertical line are not at the right position.
So my issue is, that the months don't start and end at the right time. How can I manually change the values (and with that the corresponding position) for the months.
For simplification purposes I attached a picture. at the top as X-Axis labels you see values beginning from 1542000000 with a fixed space of 3000000 between them. With the formatter I made it that here are normally the right months. To make it clear I put the line-values at the beginning and at the end of the months. You see for past months the difference gets bigger. With some tweaking of the setLabelCount I make it to look right for a current set of data but when the data changes it will become wrong again.
Are these numbers set in the entries? How can I change/define these?
Since it is my first post here and I am still new at coding, I apologize in advance for any lack of knowledge.
**Charts version/Branch/Commit Number: The newest I think.
**Xcode version: 10
**Swift version: 4.0
**Platform(s) running Charts: iPhone
**macOS version running Xcode:
The text was updated successfully, but these errors were encountered:
Hi guys!
I want to build a Chart for my Swift iOS App where I can track when I lifted Y-amounts of weights in the gym. Therefore I neet dates on the X-Axis and some weight-values on the Y-Axis. I use timestamps for the X-Axis. On the X-Axis Labels I don't want to see the exact dates when I trained but rather the rough span of the months. With the formatter I made it that the months show up on the labels, but the labels/the corresponding vertical line are not at the right position.
So my issue is, that the months don't start and end at the right time. How can I manually change the values (and with that the corresponding position) for the months.
For simplification purposes I attached a picture. at the top as X-Axis labels you see values beginning from 1542000000 with a fixed space of 3000000 between them. With the formatter I made it that here are normally the right months. To make it clear I put the line-values at the beginning and at the end of the months. You see for past months the difference gets bigger. With some tweaking of the setLabelCount I make it to look right for a current set of data but when the data changes it will become wrong again.
Are these numbers set in the entries? How can I change/define these?
Since it is my first post here and I am still new at coding, I apologize in advance for any lack of knowledge.
**Charts version/Branch/Commit Number: The newest I think.
**Xcode version: 10
**Swift version: 4.0
**Platform(s) running Charts: iPhone
**macOS version running Xcode:
The text was updated successfully, but these errors were encountered: