mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 02:04:50 +00:00
fix(sales-funnel): Use frappe.Chart() instead of Chart()
This commit is contained in:
@@ -277,7 +277,7 @@ erpnext.SalesFunnel = class SalesFunnel {
|
||||
let chart_data = me.options.data ? me.options.data : null;
|
||||
|
||||
const parent = me.elements.funnel_wrapper[0];
|
||||
this.chart = new Chart(parent, {
|
||||
this.chart = new frappe.Chart(parent, {
|
||||
title: __("Sales Opportunities by Source"),
|
||||
height: 400,
|
||||
data: chart_data,
|
||||
@@ -298,7 +298,7 @@ erpnext.SalesFunnel = class SalesFunnel {
|
||||
let chart_data = me.options.data ? me.options.data : null;
|
||||
|
||||
const parent = me.elements.funnel_wrapper[0];
|
||||
this.chart = new Chart(parent, {
|
||||
this.chart = new frappe.Chart(parent, {
|
||||
title: __("Sales Pipeline by Stage"),
|
||||
height: 400,
|
||||
data: chart_data,
|
||||
|
||||
Reference in New Issue
Block a user