Closed KDLPro closed 4 weeks ago
It looks like your axisOptions
is incorrectly configured --
You'll want something more like this:
axisOptions={{
font: Satoshi,
}}
That should enable the axis to be drawn -- from there you can add more options, feel free to check out the documentation!
Hello man! Thanks for the response @zibs! I tried your fix and sadly it didn't work :(
It looks like your
axisOptions
is incorrectly configured --You'll want something more like this:
axisOptions={{ font: Satoshi, }}
That should enable the axis to be drawn -- from there you can add more options, feel free to check out the documentation!
If you can provide a more reproducible example -- a repo or something I can truly just copy paste I'm happy to take a look!
Sure thing, much appreciated. Will push a commit rn @zibs and send it to you
I invited you to my repository @zibs: https://github.com/KDLPro/Abaca-Fiber-Monitoring-Mobile-App
By the way, the issue is in app/(auth)/(main_app)/tabs/database.jsx.
On Fri, 16 Aug 2024, 11:03 pm Eli Zibin, @.***> wrote:
If you can provide a more reproducible example -- a repo or something I can truly just copy paste I'm happy to take a look!
— Reply to this email directly, view it on GitHub https://github.com/FormidableLabs/victory-native-xl/issues/335#issuecomment-2293676158, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJGQQBXTVAA6PAC2FYXWSUDZRYICRAVCNFSM6AAAAABMSSERHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTGY3TMMJVHA . You are receiving this because you authored the thread.Message ID: @.***>
Looks okay if I do this:
<View className="h-60">
{scannedDailyData &&
<CartesianChart
data={scannedDailyData}
xKey="created_at"
yKeys={["number_of_fibers"]}
axisOptions={{font: Satoshi, labelOffset: 20}}
>
{({points}) => (
<Line points={points.number_of_fibers} color={colors.brown[300]} strokeWidth={3} />
)}
</CartesianChart>
}
</View>
Oooh I'll try to test it later, thank you!
But why do you think the other values are undefined?
Also, does this mean that I do need a minimum of three points to remove the undefined thing? Or do I need to order the dates properly?
On Sat, 17 Aug 2024, 4:16 am Eli Zibin, @.***> wrote:
Looks okay if I do this:
{scannedDailyData && {({points}) => ( })} Screenshot.2024-08-16.at.1.15.41.PM.png (view on web) https://github.com/user-attachments/assets/ca70e7a2-8630-4aa6-85c6-41b2d6485673
— Reply to this email directly, view it on GitHub https://github.com/FormidableLabs/victory-native-xl/issues/335#issuecomment-2294172013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJGQQBTMVXHNXV37EL6HCLTZRZM25AVCNFSM6AAAAABMSSERHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUGE3TEMBRGM . You are receiving this because you authored the thread.Message ID: @.***>
Question
Right now, I'm trying to add axes in my graph but I have problems rendering the axes labels. The grid is already rendered though.
Background Info/Attempts
Relevant code snippet:
Sample data:
Relevant snapshot of result:
Your help is very much appreciated since I'm new to this and I must admit, I'm cramming for my thesis.