%PDF- %PDF-
Direktori : /home/opti/workflow/src/public/app-assets/js/scripts/charts/flot/bar/ |
Current File : /home/opti/workflow/src/public/app-assets/js/scripts/charts/flot/bar/thresholds.js |
/*========================================================================================= File Name: thresholds.js Description: Flot thresholds chart ---------------------------------------------------------------------------------------- Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template Version: 1.0 Author: Pixinvent Author URL: hhttp://www.themeforest.net/user/pixinvent ==========================================================================================*/ // Thresholds chart // ------------------------------ $(window).on("load", function(){ var d1 = []; for (var i = 0; i <= 60; i += 1) { d1.push([i, parseInt(Math.random() * 30 - 10)]); } function plotWithOptions(t) { $.plot("#thresholds", [{ data: d1, color: "#00A5A8", threshold: { below: t, color: "#F25E75" }, lines: { steps: true } }],{ grid: { borderWidth: 1, borderColor: "#e9e9e9", color: '#999', minBorderMargin: 20, labelMargin: 10, margin: { top: 8, bottom: 20, left: 20 }, }, }); } plotWithOptions(0); });