Set minimun and maximum for the graph
If no data is present, shows an error
Event object and draft of event table