This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Trend scale on graphs
#2
Try this Custom JS. Change trend ID and max value as needed. You can add if statements to set maximum value for other trends. This will only work in single trend view.

Code:
$(function(){
  if (typeof Chart != 'object') {
    return;
  }
  
  function getid() {
    var sel = $('.nav .active .a');
    if (sel.length == 1) {
      return sel.data('trend').id;
    }
  }
  
  var calcBounds = Chart.calcBounds;
  
  Chart.calcBounds = function() {
    calcBounds.apply(this);
    
    if (getid() == 1) {
      this.max = 1000;
    }
  }
});
Reply


Messages In This Thread
Trend scale on graphs - by tassiebean - 04.09.2019, 15:18
RE: Trend scale on graphs - by admin - 05.09.2019, 07:44
RE: Trend scale on graphs - by tassiebean - 05.09.2019, 12:39
RE: Trend scale on graphs - by admin - 05.09.2019, 13:09
RE: Trend scale on graphs - by cekca - 06.09.2019, 08:51
RE: Trend scale on graphs - by admin - 06.09.2019, 09:03

Forum Jump: