Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-integer values for x coordinates #63

Open
dangdk2 opened this issue Jul 15, 2022 · 1 comment
Open

Non-integer values for x coordinates #63

dangdk2 opened this issue Jul 15, 2022 · 1 comment

Comments

@dangdk2
Copy link

dangdk2 commented Jul 15, 2022

Hi, Sorry if this is a silly question but so far when the graph plots (line graph or scatter graph) it does not recognise non inter values for the x axis, e.g, if I put x as 1.2 it just plots it at 1. How do I allow for non-integer vlaues for x to be plotted?
Thanks!

@goat1000
Copy link
Owner

To get floating point keys to work you must use Structured data.

If you try to use floating point keys in an array PHP will round the value to an integer. Using structured data means you can send SVGGraph any key values and even repeat key values if the graph type supports it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants