Skip to content
Discussion options

You must be logged in to vote

I think the issue is that xychart currently treats the x-axis values more like categories/labels than numeric coordinates.

So if you write labels like 10, 20, 30, 50, 100, 200, they are spaced evenly, even though the numeric distance between them is not even. That works for categorical charts, but it does not represent measurement curves correctly.

For your use case, you would need true numeric (x, y) points, where the x position is scaled from the numeric value, not from the index of the label. Something like:

xychart-beta
x-axis "ADC input" 0 --> 1500
y-axis "ADC output" 0 --> 1500
line [
[10, 0],
[20, 2],
[30, 10],
[50, 40],
[100, 100],
[200, 200],
[1500, 1500]
]

I do not think that sy…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DaveDavenport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants