p!ranha?
Server IP : 103.169.32.36  /  Your IP : 216.73.217.13
Web Server : Apache
System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/dpmptsp/public_html/admin/assets/vendor/flot/

Upload File :
Curr3nt_D!r [ Writeable ] D0cum3nt_r0Ot [ Writeable ]

 
Command :
Current File : /home/dpmptsp/public_html/admin/assets/vendor/flot/jquery.flot.categories.js
/* Flot plugin for plotting textual data or categories.

Copyright (c) 2007-2014 IOLA and Ole Laursen.
Licensed under the MIT license.

Consider a dataset like [["February", 34], ["March", 20], ...]. This plugin
allows you to plot such a dataset directly.

To enable it, you must specify mode: "categories" on the axis with the textual
labels, e.g.

	$.plot("#placeholder", data, { xaxis: { mode: "categories" } });

By default, the labels are ordered as they are met in the data series. If you
need a different ordering, you can specify "categories" on the axis options
and list the categories there:

	xaxis: {
		mode: "categories",
		categories: ["February", "March", "April"]
	}

If you need to customize the distances between the categories, you can specify
"categories" as an object mapping labels to values

	xaxis: {
		mode: "categories",
		categories: { "February": 1, "March": 3, "April": 4 }
	}

If you don't specify all categories, the remaining categories will be numbered
from the max value plus 1 (with a spacing of 1 between each).

Internally, the plugin works by transforming the input data through an auto-
generated mapping where the first category becomes 0, the second 1, etc.
Hence, a point like ["February", 34] becomes [0, 34] internally in Flot (this
is visible in hover and click events that return numbers rather than the
category labels). The plugin also overrides the tick generator to spit out the
categories as ticks instead of the values.

If you need to map a value back to its label, the mapping is always accessible
as "categories" on the axis object, e.g. plot.getAxes().xaxis.categories.

*/

(function ($) {
    var options = {
        xaxis: {
            categories: null
        },
        yaxis: {
            categories: null
        }
    };
    
    function processRawData(plot, series, data, datapoints) {
        // if categories are enabled, we need to disable
        // auto-transformation to numbers so the strings are intact
        // for later processing

        var xCategories = series.xaxis.options.mode == "categories",
            yCategories = series.yaxis.options.mode == "categories";
        
        if (!(xCategories || yCategories))
            return;

        var format = datapoints.format;

        if (!format) {
            // FIXME: auto-detection should really not be defined here
            var s = series;
            format = [];
            format.push({ x: true, number: true, required: true });
            format.push({ y: true, number: true, required: true });

            if (s.bars.show || (s.lines.show && s.lines.fill)) {
                var autoscale = !!((s.bars.show && s.bars.zero) || (s.lines.show && s.lines.zero));
                format.push({ y: true, number: true, required: false, defaultValue: 0, autoscale: autoscale });
                if (s.bars.horizontal) {
                    delete format[format.length - 1].y;
                    format[format.length - 1].x = true;
                }
            }
            
            datapoints.format = format;
        }

        for (var m = 0; m < format.length; ++m) {
            if (format[m].x && xCategories)
                format[m].number = false;
            
            if (format[m].y && yCategories)
                format[m].number = false;
        }
    }

    function getNextIndex(categories) {
        var index = -1;
        
        for (var v in categories)
            if (categories[v] > index)
                index = categories[v];

        return index + 1;
    }

    function categoriesTickGenerator(axis) {
        var res = [];
        for (var label in axis.categories) {
            var v = axis.categories[label];
            if (v >= axis.min && v <= axis.max)
                res.push([v, label]);
        }

        res.sort(function (a, b) { return a[0] - b[0]; });

        return res;
    }
    
    function setupCategoriesForAxis(series, axis, datapoints) {
        if (series[axis].options.mode != "categories")
            return;
        
        if (!series[axis].categories) {
            // parse options
            var c = {}, o = series[axis].options.categories || {};
            if ($.isArray(o)) {
                for (var i = 0; i < o.length; ++i)
                    c[o[i]] = i;
            }
            else {
                for (var v in o)
                    c[v] = o[v];
            }
            
            series[axis].categories = c;
        }

        // fix ticks
        if (!series[axis].options.ticks)
            series[axis].options.ticks = categoriesTickGenerator;

        transformPointsOnAxis(datapoints, axis, series[axis].categories);
    }
    
    function transformPointsOnAxis(datapoints, axis, categories) {
        // go through the points, transforming them
        var points = datapoints.points,
            ps = datapoints.pointsize,
            format = datapoints.format,
            formatColumn = axis.charAt(0),
            index = getNextIndex(categories);

        for (var i = 0; i < points.length; i += ps) {
            if (points[i] == null)
                continue;
            
            for (var m = 0; m < ps; ++m) {
                var val = points[i + m];

                if (val == null || !format[m][formatColumn])
                    continue;

                if (!(val in categories)) {
                    categories[val] = index;
                    ++index;
                }
                
                points[i + m] = categories[val];
            }
        }
    }

    function processDatapoints(plot, series, datapoints) {
        setupCategoriesForAxis(series, "xaxis", datapoints);
        setupCategoriesForAxis(series, "yaxis", datapoints);
    }

    function init(plot) {
        plot.hooks.processRawData.push(processRawData);
        plot.hooks.processDatapoints.push(processDatapoints);
    }
    
    $.plot.plugins.push({
        init: init,
        options: options,
        name: 'categories',
        version: '1.0'
    });
})(jQuery);
N4m3
5!z3
L45t M0d!f!3d
0wn3r / Gr0up
P3Rm!55!0n5
0pt!0n5
..
--
December 21 2023 09:53:05
1000 / 1000
0755
examples
--
December 21 2023 09:50:09
1000 / 1000
0755
API.md
53.779 KB
January 13 2024 08:46:46
1000 / 1000
0755
CONTRIBUTING.md
3.262 KB
January 13 2024 08:46:46
1000 / 1000
0755
FAQ.md
3.234 KB
January 13 2024 08:46:47
1000 / 1000
0755
LICENSE.txt
1.065 KB
January 13 2024 08:46:50
1000 / 1000
0755
Makefile
0.29 KB
January 13 2024 08:46:50
1000 / 1000
0755
NEWS.md
40.348 KB
January 13 2024 08:46:50
1000 / 1000
0755
PLUGINS.md
4.378 KB
January 13 2024 08:46:50
1000 / 1000
0755
README.md
3.801 KB
January 13 2024 08:46:50
1000 / 1000
0755
excanvas.js
42.354 KB
January 13 2024 08:46:46
1000 / 1000
0755
excanvas.min.js
18.861 KB
January 13 2024 08:46:46
1000 / 1000
0755
jquery.colorhelpers.js
6.183 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.colorhelpers.min.js
3.061 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.canvas.js
9.711 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.canvas.min.js
3.866 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.categories.js
6.077 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.categories.min.js
2.543 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.crosshair.js
5.464 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.crosshair.min.js
2.117 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.errorbars.js
12.663 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.errorbars.min.js
5.331 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.fillbetween.js
5.354 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.fillbetween.min.js
2.261 KB
January 13 2024 08:46:47
1000 / 1000
0755
jquery.flot.image.js
7.423 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.image.min.js
2.626 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.js
123.183 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.min.js
51.731 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.navigate.js
14.221 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.navigate.min.js
6.42 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.pie.js
24.052 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.pie.min.js
11.903 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.resize.js
3.294 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.resize.min.js
2.295 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.selection.js
13.185 KB
January 13 2024 08:46:48
1000 / 1000
0755
jquery.flot.selection.min.js
5.153 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.flot.stack.js
7.107 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.flot.stack.min.js
2.413 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.flot.symbol.js
2.516 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.flot.symbol.min.js
1.165 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.flot.threshold.js
4.514 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.flot.threshold.min.js
1.803 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.flot.time.js
11.914 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.flot.time.min.js
6.735 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.js
269.071 KB
January 13 2024 08:46:49
1000 / 1000
0755
jquery.min.js
138.972 KB
January 13 2024 08:46:49
1000 / 1000
0755