Sfoglia il codice sorgente

[minor] graph fixes (#3711)

version-14
Prateeksha Singh 8 anni fa
committed by Makarand Bauskar
parent
commit
b4b2c685c6
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +1
    -1
      frappe/public/js/frappe/form/dashboard.js
  2. +2
    -2
      frappe/public/js/frappe/ui/graph.js

+ 1
- 1
frappe/public/js/frappe/form/dashboard.js Vedi File

@@ -418,7 +418,7 @@ frappe.ui.form.Dashboard = Class.extend({
this.graph_area.empty().removeClass('hidden');
$.extend(args, {
parent: me.graph_area,
width: 700,
width: 710,
height: 140,
mode: 'line-graph'
});


+ 2
- 2
frappe/public/js/frappe/ui/graph.js Vedi File

@@ -107,7 +107,7 @@ frappe.ui.Graph = class Graph {
setup_values() {
this.upper_graph_bound = this.get_upper_limit_and_parts(this.y_values)[0];
this.y_axis = this.get_y_axis(this.y_values);
this.avg_unit_width = (this.width-50)/(this.x_points.length - 1);
this.avg_unit_width = (this.width-100)/(this.x_points.length - 1);
}

setup_components() {
@@ -135,7 +135,7 @@ frappe.ui.Graph = class Graph {
this.graph_list,
this.specific_y_lines
).attr({
transform: "translate(40, 10)" // default
transform: "translate(60, 10)" // default
});
}



Caricamento…
Annulla
Salva