Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Web/Content/jqplot/src/jquery.jqplot.js @ 14777

Last change on this file since 14777 was 9062, checked in by fschoepp, 12 years ago

#1888:
Backend changes:

  • Simplified job state detection (only one hive call will be made to detect all states now, instead of one additional call per job)
  • Reorganized classes (moved model classes into Model folder)

Website changes:

  • Website now heavily uses JavaScript to achieve better user experience
  • JavaScript degrades gracefully, except for plots
  • Tables: Added jquery-datatable-plugin to extend tables (pagination + search functionality)
  • OaaS-Website now uses the design of the HL websites (found in WebApplication branch)
  • Added jqplot to render zoomable line plots for HL-Datatables
  • Styling.js: Plots will be generated by using an ajax call; additional jquery-styling occurs within this file.
  • Added jquery-ui-1.9.2 which is capable of handling/rendering tabs, accordions and resizers.
File size: 2.9 KB
Line 
1/**
2 * jqPlot
3 * Pure JavaScript plotting plugin using jQuery
4 *
5 * Version: @VERSION
6 *
7 * Copyright (c) 2009-2011 Chris Leonello
8 * jqPlot is currently available for use in all personal or commercial projects
9 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL
10 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can
11 * choose the license that best suits your project and use it accordingly.
12 *
13 * Although not required, the author would appreciate an email letting him
14 * know of any substantial use of jqPlot.  You can reach the author at:
15 * chris at jqplot  or see http://www.jqplot.com/info.php .
16 *
17 * If you are feeling kind and generous, consider supporting the project by
18 * making a donation at: http://www.jqplot.com/donate.php .
19 *
20 * sprintf functions contained in jqplot.sprintf.js by Ash Searle:
21 *
22 *     version 2007.04.27
23 *     author Ash Searle
24 *     http://hexmen.com/blog/2007/03/printf-sprintf/
25 *     http://hexmen.com/js/sprintf.js
26 *     The author (Ash Searle) has placed this code in the public domain:
27 *     "This code is unrestricted: you are free to use it however you like."
28 *
29 */
30 
31 /**
32 *
33 * This is a boot loader for the source version of jqplot.
34 * It will load all of the necessary core jqplot files that
35 * are concated together in the distribution.
36 *
37 */
38 
39(function(){
40    var getRootNode = function(){
41        // figure out the path to this loader
42        if(this["document"] && this["document"]["getElementsByTagName"]){
43            var scripts = document.getElementsByTagName("script");
44            var pat = /jquery\.jqplot\.js/i;
45            for(var i = 0; i < scripts.length; i++){
46                var src = scripts[i].getAttribute("src");
47                if(!src){ continue; }
48                var m = src.match(pat);
49                if(m){
50                    return {
51                        node: scripts[i],
52                        root: src.substring(0, m.index)
53                    };
54                }
55            }
56        }
57    };
58
59
60    var files = ['jqplot.core.js', 'jqplot.linearTickGenerator.js', 'jqplot.linearAxisRenderer.js', 'jqplot.axisTickRenderer.js', 'jqplot.axisLabelRenderer.js', 'jqplot.tableLegendRenderer.js', 'jqplot.lineRenderer.js', 'jqplot.markerRenderer.js', 'jqplot.divTitleRenderer.js', 'jqplot.canvasGridRenderer.js', 'jqplot.shadowRenderer.js', 'jqplot.shapeRenderer.js', 'jqplot.sprintf.js', 'jsdate.js', 'jqplot.themeEngine.js'];
61    var rn = getRootNode().root;
62    for (var i=0; i<files.length; i++) {
63        var pp = rn+files[i];
64        try {
65            document.write("<scr"+"ipt type='text/javascript' src='"+pp+"'></scr"+"ipt>");
66        } catch (e) {
67            var script = document.createElement("script");
68            script.src = pp;
69            document.getElementsByTagName("head")[0].appendChild(script);
70            // avoid memory leak
71            script = null;
72        }
73    }
74   
75})();
Note: See TracBrowser for help on using the repository browser.