mirror of
https://github.com/esphome/esphome.git
synced 2026-02-20 00:15:36 -07:00
Added getters for graphs ymin and ymax (#8112)
Co-authored-by: guillempages <guillempages@users.noreply.github.com>
This commit is contained in:
@@ -132,6 +132,10 @@ void Graph::draw(Display *buff, uint16_t x_offset, uint16_t y_offset, Color colo
|
||||
yrange = ymax - ymin;
|
||||
}
|
||||
|
||||
// Store graph limts
|
||||
this->graph_limit_max_ = ymax;
|
||||
this->graph_limit_min_ = ymin;
|
||||
|
||||
/// Draw grid
|
||||
if (!std::isnan(this->gridspacing_y_)) {
|
||||
for (int y = yn; y <= ym; y++) {
|
||||
|
||||
Reference in New Issue
Block a user