- }
- },
- });
- }
-
- render_graph(args) {
- this.chart_area.show();
- this.chart_area.body.empty();
- $.extend(args, {
- type: "line",
- colors: args.colors || ["green"],
- truncateLegends: 1,
- axisOptions: {
- shortenYAxisNumbers: 1,
- numberFormatter: frappe.utils.format_chart_axis_number,
- },
- });
- this.show();
-
- this.chart = new frappe.Chart(".form-graph", args);
- if (!this.chart) {