mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
refactor: remove columns from chart labels
This commit is contained in:
@@ -36,7 +36,7 @@ def get_chart_data(data, conditions, filters):
|
||||
|
||||
# fetch only periodic columns as labels
|
||||
columns = conditions.get("columns")[start:-2][2::2]
|
||||
labels = [column.split(":")[0] for column in columns]
|
||||
labels = [column.split(":")[0].replace(" (Amt)", "") for column in columns]
|
||||
datapoints = [0] * len(labels)
|
||||
|
||||
for row in data:
|
||||
|
||||
Reference in New Issue
Block a user