From 21b2b107c3f00e92cc4bc02d6b0e8cf58e04d016 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 3 Oct 2023 23:33:16 -0400 Subject: [PATCH] fix: Use next(colors) instead of colors.next() for generator --- agatecharts/charts/bars.py | 2 +- agatecharts/charts/columns.py | 2 +- agatecharts/charts/lines.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agatecharts/charts/bars.py b/agatecharts/charts/bars.py index b5a0e0b..fec1a7f 100644 --- a/agatecharts/charts/bars.py +++ b/agatecharts/charts/bars.py @@ -58,7 +58,7 @@ def plot(self, table, axes): series_positions, value_column, bar_height, - color=colors.next(), + color=next(colors), linewidth=0, label=value_column_name ) diff --git a/agatecharts/charts/columns.py b/agatecharts/charts/columns.py index acb40d8..7d07962 100644 --- a/agatecharts/charts/columns.py +++ b/agatecharts/charts/columns.py @@ -54,7 +54,7 @@ def plot(self, table, axes): series_positions, value_column, bar_width, - color=colors.next(), + color=next(colors), linewidth=0, label=value_column_name ) diff --git a/agatecharts/charts/lines.py b/agatecharts/charts/lines.py index 7372861..3fdbf51 100644 --- a/agatecharts/charts/lines.py +++ b/agatecharts/charts/lines.py @@ -52,7 +52,7 @@ def plot(self, table, axes): x_column, y_column, linewidth=2, - color=colors.next(), + color=next(colors), label=y_column_name )