File: dist/jPlotGraph/plot.func.linear.ui.js

Recommend this page to a friend!
  Classes of Leonardo Mauro Pereira Moraes   JavaScript Plot Graph   dist/jPlotGraph/plot.func.linear.ui.js   Download  
File: dist/jPlotGraph/plot.func.linear.ui.js
Role: Example script
Content type: text/plain
Description: Example script
Class: JavaScript Plot Graph
Plot the values of a function in a canvas
Author: By
Last change: intial commit
Date: 2 years ago
Size: 1,095 bytes
 

Contents

Class file image Download
// Closure (function(){ /** * PlotGraph - Linear Function * This is a example how apply user interaction with values capture from form * * @author Leonardo Mauro <leo.mauro.desenv@gmail.com> * @link http://leonardomauro.com/portfolio/ Portfolio of Leonardo Mauro * @link https://github.com/leomaurodesenv/jPlotGraph GitHub * @version 1.1.0 * @copyright © 2016 Leonardo Mauro * @license https://opensource.org/licenses/GPL-2.0 GNU Public License (GPL v2) * @package jPlotGraph * @access public */ /** * Function to be used in form.submit * Renew all values of PlotGraph * @access public * @var double a Value of var a. * @var double b Value of var b. * @var double xi Value of smaller x in axis. * @var double xf Value of bigger x in axis. */ function_ui = function(a, b, xi, xf){ /* Libera os eventos do 'plot' */ events.blocking = false; /* Ajustanto valores */ grafic.params.a = parseFloat(a); grafic.params.b = parseFloat(b); var x = {'min':xi, 'max':xf}; /* Plotando a função */ if(grafic.stoping) return; grafic.plot(x); }; })();