/home2/dakshskx/dakshaseo.com/admin/assets/scripts/custom
NameSizeModeActions
calendar.js74120644editdlrm
charts.js314980644editdlrm
coming-soon.js6610644editdlrm
components-dropdowns.js103830644editdlrm
components-editors.js5160644editdlrm
components-form-tools.js191330644editdlrm
components-ion-sliders.js23180644editdlrm
components-jqueryui-sliders.js36800644editdlrm
components-knob-dials.js5460644editdlrm
components-nouisliders.js17880644editdlrm
components-pickers.js78520644editdlrm
contact-us.js6320644editdlrm
custom.js5530644editdlrm
ecommerce-index.js80690644editdlrm
ecommerce-orders-view.js73390644editdlrm
ecommerce-orders.js27720644editdlrm
ecommerce-products-edit.js65210644editdlrm
ecommerce-products.js27890644editdlrm
form-dropzone.js14340644editdlrm
form-editable.js186430644editdlrm
form-fileupload.js27220644editdlrm
form-image-crop.js170440644editdlrm
form-samples.js14840644editdlrm
form-validation.js120080644editdlrm
form-wizard.js104420644editdlrm
inbox.js96430644editdlrm
index11.js326050644editdlrm
lock.js3950644editdlrm
login-soft.js84720644editdlrm
login.js83320644editdlrm
maps-google.js61530644editdlrm
maps-vector.js18970644editdlrm
portfolio.js1920644editdlrm
portlet-draggable.js6550644editdlrm
search.js2870644editdlrm
table-advanced.js45830644editdlrm
table-ajax.js33640644editdlrm
table-editable.js61910644editdlrm
table-managed.js60840644editdlrm
tasks.js3830644editdlrm
ui-alert-dialog-api.js33470644editdlrm
ui-blockui.js38940644editdlrm
ui-datepaginator.js8050644editdlrm
ui-extended-modals.js25640644editdlrm
ui-general.js66240644editdlrm
ui-idletimeout.js23300644editdlrm
ui-nestable.js15910644editdlrm
ui-notific8.js14720644editdlrm
ui-toastr.js49900644editdlrm
ui-tree.js64580644editdlrm
Edit: /home2/dakshskx/dakshaseo.com/admin/assets/scripts/custom/ecommerce-index.js (8069B)
var EcommerceIndex = function () { function showTooltip(x, y, labelX, labelY) { $('
' + (labelY.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,')) + 'USD<\/div>').css({ position: 'absolute', display: 'none', top: y - 40, left: x - 60, border: '0px solid #ccc', padding: '2px 6px', 'background-color': '#fff', }).appendTo("body").fadeIn(200); } var initChart1 = function () { var data = [ ['01/2013', 0], ['02/2013', 8], ['03/2013', 10], ['04/2013', 12], ['05/2013', 2125], ['06/2013', 324], ['07/2013', 1223], ['08/2013', 1365], ['09/2013', 250], ['10/2013', 999], ['11/2013', 390], ]; var plot_statistics = $.plot( $("#statistics_1"), [ { data:data, lines: { fill: 0.6, lineWidth: 0, }, color: ['#f89f9f'] }, { data: data, points: { show: true, fill: true, radius: 5, fillColor: "#f89f9f", lineWidth: 3 }, color: '#fff', shadowSize: 0 }, ], { xaxis: { tickLength: 0, tickDecimals: 0, mode: "categories", min: 2, font: { lineHeight: 15, style: "normal", variant: "small-caps", color: "#6F7B8A" } }, yaxis: { ticks: 3, tickDecimals: 0, tickColor: "#f0f0f0", font: { lineHeight: 15, style: "normal", variant: "small-caps", color: "#6F7B8A" } }, grid: { backgroundColor: { colors: ["#fff", "#fff"] }, borderWidth: 1, borderColor: "#f0f0f0", margin: 0, minBorderMargin: 0, labelMargin: 20, hoverable: true, clickable: true, mouseActiveRadius: 6 }, legend: { show: false } } ); var previousPoint = null; $("#statistics_1").bind("plothover", function (event, pos, item) { $("#x").text(pos.x.toFixed(2)); $("#y").text(pos.y.toFixed(2)); if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(2), y = item.datapoint[1].toFixed(2); showTooltip(item.pageX, item.pageY, item.datapoint[0], item.datapoint[1]); } } else { $("#tooltip").remove(); previousPoint = null; } }); } var initChart2 = function() { var data = [ ['01/2013', 10], ['02/2013', 0], ['03/2013', 10], ['04/2013', 12], ['05/2013', 212], ['06/2013', 324], ['07/2013', 122], ['08/2013', 136], ['09/2013', 250], ['10/2013', 99], ['11/2013', 190], ]; var plot_statistics = $.plot( $("#statistics_2"), [ { data:data, lines: { fill: 0.6, lineWidth: 0, }, color: ['#BAD9F5'] }, { data: data, points: { show: true, fill: true, radius: 5, fillColor: "#BAD9F5", lineWidth: 3 }, color: '#fff', shadowSize: 0 }, ], { xaxis: { tickLength: 0, tickDecimals: 0, mode: "categories", min: 2, font: { lineHeight: 14, style: "normal", variant: "small-caps", color: "#6F7B8A" } }, yaxis: { ticks: 3, tickDecimals: 0, tickColor: "#f0f0f0", font: { lineHeight: 14, style: "normal", variant: "small-caps", color: "#6F7B8A" } }, grid: { backgroundColor: { colors: ["#fff", "#fff"] }, borderWidth: 1, borderColor: "#f0f0f0", margin: 0, minBorderMargin: 0, labelMargin: 20, hoverable: true, clickable: true, mouseActiveRadius: 6 }, legend: { show: false } } ); var previousPoint = null; $("#statistics_2").bind("plothover", function (event, pos, item) { $("#x").text(pos.x.toFixed(2)); $("#y").text(pos.y.toFixed(2)); if (item) { if (previousPoint != item.dataIndex) { previousPoint = item.dataIndex; $("#tooltip").remove(); var x = item.datapoint[0].toFixed(2), y = item.datapoint[1].toFixed(2); showTooltip(item.pageX, item.pageY, item.datapoint[0], item.datapoint[1]); } } else { $("#tooltip").remove(); previousPoint = null; } }); } return { //main function init: function () { initChart1(); $('#statistics_amounts_tab').on('shown.bs.tab', function (e) { initChart2(); }); } }; }();