Вход Регистрация
Файл: templates/backend/default/assets/plugins/jquery-ricksaw-chart/js/Rickshaw.Graph.Axis.Y.Scaled.js
Строк: 20
<?php
Rickshaw
.namespace('Rickshaw.Graph.Axis.Y.Scaled');

Rickshaw.Graph.Axis.Y.Scaled Rickshaw.Class.createRickshaw.Graph.Axis.Y, {

  
initialize: function($superargs) {

    if (
typeof(args.scale) === 'undefined') {
      throw new 
Error('Scaled requires scale');
    }

    
this.scale args.scale;

    if (
typeof(args.grid) === 'undefined') {
      
this.grid true;
    } else {
      
this.grid args.grid;
    }

    
$super(args);

  },

  
_drawAxis: function($superscale) {
    
// make a copy of the custom scale, adjust the range to match the graph's scale
    
var adjustedScale this.scale.copy().range(scale.range());

    return 
$super(adjustedScale);
  },

  
_drawGrid: function($superaxis) {
    if (
this.grid) {
      
// only draw the axis if the grid option is true
      
$super(axis);
    }
  }
} );
?>
Онлайн: 2
Реклама