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
How to plot a simple model field using chartjs?
I have the folllowing model:
class RoomValue(models.Model): time = models.DateTimeField(auto_now_add=True) temperature = models.FloatField() humility = models.FloatField() light = models.FloatField()
I would like just to plot time vs temperature. How can I do that?
I tried the following:
class RoomTemperatures(ReportView): report_model = RoomValue date_field = "time" chart_engine = "chartsjs" chart_settings = [ Chart( "Room temperature", Chart.LINE, data_source=["temperature"], title_source=["time"], plot_total=True, ), ]
Thank you very much!
The text was updated successfully, but these errors were encountered:
I am trying to use this package in my site:
https://ramiboutas.com/stats/
Sorry, something went wrong.
Hello @ramiboutas 👋 I just want to acknowledge the receipt... I will get back to you soon
No branches or pull requests
How to plot a simple model field using chartjs?
I have the folllowing model:
I would like just to plot time vs temperature. How can I do that?
I tried the following:
Thank you very much!
The text was updated successfully, but these errors were encountered: