We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried to add the data as in #14 as a URL and found out that that doesn't work.
In order to solve that I followed the instruction of #14:
def limit_graph render json: {name: "Avail. Votes", data: User.calculate_seller_points.each} end
area_chart limit_graph_path
Which resulted in two graphs without any data, one for name and one for data.
The simple way:
`render json: User.calculate_seller_points.each`
Things work perfectly fine, but I'd like to name that data.
The text was updated successfully, but these errors were encountered:
Hey @Raycoms, try returning an array of hashes.
render json: [{name: "Avail. Votes", data: User.calculate_seller_points.each}]
Sorry, something went wrong.
No branches or pull requests
I tried to add the data as in #14 as a URL and found out that that doesn't work.
In order to solve that I followed the instruction of #14:
def limit_graph render json: {name: "Avail. Votes", data: User.calculate_seller_points.each} end
area_chart limit_graph_path
Which resulted in two graphs without any data, one for name and one for data.
The simple way:
Things work perfectly fine, but I'd like to name that data.
The text was updated successfully, but these errors were encountered: