As per price history, ₹" id="priceSymbol"/> EnabledLimits.MinStamp) ? true : false;
d = new Date();
d.setMonth(d.getMonth() - 6);
EnabledLimits.SixMonth = (d.getTime() > EnabledLimits.MinStamp) ? true : false;
d = new Date();
d.setMonth(d.getMonth() - 3);
EnabledLimits.ThreeMonth = (d.getTime() > EnabledLimits.MinStamp) ? true : false;
d = new Date();
d.setMonth(d.getMonth() - 1);
EnabledLimits.Month = (d.getTime() > EnabledLimits.MinStamp) ? true : false;
if (EnabledLimits.Year) document.getElementById("chart-action-button-1y").classList.remove("d-none");
if (EnabledLimits.SixMonth) document.getElementById("chart-action-button-6m").classList.remove("d-none");
if (EnabledLimits.ThreeMonth) document.getElementById("chart-action-button-3m").classList.remove("d-none");
if (EnabledLimits.Month) document.getElementById("chart-action-button-1m").classList.remove("d-none");
document.getElementById("chart-action-button-reset").classList.remove("d-none");
document.getElementById("chart-action-button-all").classList.remove("d-none");
}
function UpdateChartZoom(mode) {
let d = new Date();
switch (mode) {
case "1y":
d.setFullYear(d.getFullYear() - 1);
chart.options.scales.x.min = d.getTime();
break;
case "6m":
d.setMonth(d.getMonth() - 6);
chart.options.scales.x.min = d.getTime();
break;
case "3m":
d.setMonth(d.getMonth() - 3);
chart.options.scales.x.min = d.getTime();
break;
case "1m":
d.setMonth(d.getMonth() - 1);
chart.options.scales.x.min = d.getTime();
break;
case "all":
chart.options.scales.x.min = EnabledLimits.MinStamp;
break;
default:
if (EnabledLimits.SixMonth) {
UpdateChartZoom("6m");
} else if (EnabledLimits.ThreeMonth) {
UpdateChartZoom("3m");
} else if (EnabledLimits.Year) {
UpdateChartZoom("1y");
} else if (EnabledLimits.Month) {
UpdateChartZoom("1m");
} else {
UpdateChartZoom("all");
}
return;
}
chart.update();
}
const TooltipText = (tooltipItems) => {
if (tooltipItems.datasetIndex == 0) return "Price: \u20B9" + tooltipItems.parsed.y;
else if (tooltipItems.datasetIndex == 1) return "Offer Price: \u20B9" + tooltipItems.parsed.y;
else return "Price: \u20B9" + tooltipItems.parsed.y;
}
const TooltipTitle = (tooltipItems) => {
let d = new Date(tooltipItems[0].parsed.x);
return d.toDateString();
}
var ChartOptions = {
responsive: true,
elements: {
line: {
tension: 0.1
}
},
maintainAspectRatio: false,
onResize: (chart) => {
chart.update();
},
tooltips: {
mode: 'index',
intersect: false
},
hover: {
mode: 'nearest',
intersect: true
},
onComplete: () => {
delayed = true;
},
scales: {
x: {
type: 'time',
tooltipFormat: "DD-MM-YYYY",
distribution: 'linear',
time: {
displayFormats: {
'week': 'D MMM',
'month': 'DD MMM YY',
'quarter': 'MMM YY',
'year': 'MMM YY'
},
unit: "day",
stepSize: "1"
},
ticks: {
source: 'auto'
},
grid: {
display: false
}
},
y: {
grid: {
display: false
}
}
},
plugins: {
legend: {
display: false
},
title: {
display: true,
text: 'Price History Chart'
},
tooltip: {
enabled: true,
position: 'nearest',
mode: 'index',
intersect: false,
callbacks: {
title: TooltipTitle,
label: TooltipText
}
},
zoom: {
limits: {
x: {},
y: {}
},
pan: {
enabled: true,
mode: 'x',
rangeMin: {
x: null
},
rangeMax: {
x: null
}
},
zoom: {
wheel: {
enabled: true
},
pinch: {
enabled: true
},
drag: {
enabled: true
},
mode: 'x',
rangeMin: {
x: null
},
rangeMax: {
x: null
},
onZoomComplete({
chart
}) {
chart.update('none');
}
}
}
}
};
var ChartConfigs = {
type: 'line',
animationEnabled: true,
zoomEnabled: true,
title: {
text: "Timeline"
},
axisX: {
title: "Datetime"
},
axisY: {
title: "Price (in INR)",
valueFormatString: "\u20B9#"
},
data: {
datasets: []
},
options: {}
};
var chart;
var canvas = document.getElementById('price-history-graph').getContext("2d");
function ResetZoom() {
chart.resetZoom();
}
function toggleFullscreen() {
document.body.classList.toggle("fullscreen-mode");
}
function exitFullscreen() {
const overlay = document.getElementById('fullscreen-overlay');
if (overlay) overlay.style.display = 'none';
}
function downloadChart() {
const link = document.createElement('a');
link.download = '-idpricesymbol-input-typehidden-namepricevalue-idpricevalue-input-price-history-chart.png';
link.href = chart.canvas.toDataURL();
link.click();
}
function UpdatePrices(Prices) {
let flag = false;
if ("History" in Prices) {
let ChartDataSets = [];
if (Prices.History != null && Array.isArray(Prices.History) && Prices.History.length > 0) {
if (Prices.History.length == 1) {
ChartDataSets.push({
type: "line",
label: "Prices",
data: Prices.History,
borderJoinStyle: "round",
pointRadius: 2,
fill: true,
backgroundColor: '#660066',
borderColor: '#660066'
});
} else {
ChartDataSets.push({
type: "line",
label: "Prices",
data: Prices.History,
borderJoinStyle: "round",
pointRadius: 0,
borderWidth: 1,
fill: true,
backgroundColor: '#CC99CC77',
borderColor: '#660066'
});
}
flag = true;
}
if (flag && ChartDataSets.length > 0) {
let start_date = new Date(Prices.History[0].x);
let end_date = new Date(Prices.History[Prices.History.length - 1].x);
let range_min = new Date(Prices.History[0].x);
let range_max = new Date(Prices.History[Prices.History.length - 1].x);
ChartOptions.scales.x.min = start_date.toDateString();
ChartOptions.scales.x.max = end_date.toDateString();
EnabledLimits.MaxStamp = end_date.getTime();
EnabledLimits.MinStamp = start_date.getTime();
ChartOptions.plugins.zoom.pan.rangeMin.x = range_min;
ChartOptions.plugins.zoom.zoom.rangeMin.x = range_min;
ChartOptions.plugins.zoom.limits.x.min = range_min;
ChartOptions.plugins.zoom.pan.rangeMax.x = range_max;
ChartOptions.plugins.zoom.zoom.rangeMax.x = range_max;
ChartOptions.plugins.zoom.limits.x.max = range_max;
if ("Price" in Prices && "MinPrice" in Prices.Price && Prices.Price.MinPrice) {
ChartOptions.plugins.zoom.pan.rangeMin.y = parseInt(Prices.Price.MinPrice - ((Prices.Price.MinPrice * 10) / 100));
ChartOptions.plugins.zoom.zoom.rangeMin.y = parseInt(Prices.Price.MinPrice - ((Prices.Price.MinPrice * 10) / 100));
ChartOptions.plugins.zoom.limits.y.min = parseInt(Prices.Price.MinPrice - ((Prices.Price.MinPrice * 10) / 100));
}
if ("Price" in Prices && "MaxPrice" in Prices.Price && Prices.Price.MaxPrice) {
ChartOptions.plugins.zoom.pan.rangeMax.y = parseInt(Prices.Price.MaxPrice + ((Prices.Price.MaxPrice * 10) / 100));
ChartOptions.plugins.zoom.zoom.rangeMax.y = parseInt(Prices.Price.MaxPrice + ((Prices.Price.MaxPrice * 10) / 100));
ChartOptions.plugins.zoom.limits.y.max = parseInt(Prices.Price.MaxPrice + ((Prices.Price.MaxPrice * 10) / 100));
}
ChartConfigs.options = ChartOptions;
ChartConfigs.data.datasets = ChartDataSets;
document.getElementById("Chart-Text").style.display = "none";
setTimeout(() => {
try {
chart = new Chart(canvas, ChartConfigs);
setTimeout(() => {
UpdateEnabled();
PageSection = document.querySelectorAll('.ph-section');
}, 1000);
} catch (error) {}
}, 500);
}
}
}
function FetchPrices() {
fetch("https://price-history.in/api/price/vnzLYASj", {
method: "post",
headers: FetchHeaders
})
.then((response) => {
if (response.status == 401) {
location.reload();
} else return response.json();
})
.then((prices) => {
setTimeout(() => {
UpdatePrices(prices);
}, 1000);
document.getElementById("Chart-Text").style.display = "none";
})
.catch((err) => {
document.getElementById("price-history-graph").style.display = "none !important";
document.getElementById("Chart-Text").innerHTML = "Something went wrong,
Please Try Again later!";
setTimeout(() => {
PageSection = document.querySelectorAll('.ph-section');
}, 500);
});
}
document.addEventListener("DOMContentLoaded", function(event) {
setTimeout(() => {
UpdatePrices(JSON.parse('{"Code":"vnzLYASj","History":[{"y":8720,"x":"2024-04-03 11:00:00"},{"y":8715,"x":"2024-04-08 21:52:00"},{"y":8136,"x":"2024-07-06 05:16:00"},{"y":8873,"x":"2024-07-31 00:56:00"},{"y":8839,"x":"2024-08-03 07:16:00"},{"y":8762,"x":"2024-08-13 02:32:00"},{"y":8752,"x":"2024-08-21 16:28:00"},{"y":8013,"x":"2024-08-29 16:18:00"},{"y":8077,"x":"2024-09-10 13:34:00"},{"y":8027,"x":"2024-09-19 06:28:00"},{"y":7748,"x":"2024-09-23 08:28:00"},{"y":7742,"x":"2024-09-26 04:48:00"},{"y":8064,"x":"2024-10-01 08:30:00"},{"y":8020,"x":"2024-10-15 07:24:00"},{"y":7987,"x":"2024-10-17 12:40:00"},{"y":9999,"x":"2025-04-11 15:16:00"},{"y":7921,"x":"2025-04-15 09:34:00"},{"y":7796,"x":"2025-05-06 09:04:00"},{"y":7796,"x":"2025-07-01 14:24:00"},{"y":7559,"x":"2025-07-11 13:36:00"},{"y":7796,"x":"2025-07-16 11:00:00"},{"y":7921,"x":"2025-07-28 09:00:00"},{"y":7559,"x":"2025-07-30 09:16:00"},{"y":7796,"x":"2025-08-08 10:36:00"},{"y":7921,"x":"2025-08-18 06:52:00"},{"y":8049,"x":"2025-09-11 07:54:00"},{"y":7888.02,"x":"2025-09-18 06:58:38"},{"y":7640.08,"x":"2025-09-23 09:28:44"},{"y":7640.08,"x":"2025-09-28 22:58:29"},{"y":7640.08,"x":"2025-10-06 05:24:01"},{"y":7719.46,"x":"2025-10-09 22:45:46"},{"y":11417,"x":"2025-10-15 12:47:51"},{"y":11002,"x":"2025-10-19 03:29:44"},{"y":11330,"x":"2025-10-23 04:00:57"},{"y":8002,"x":"2025-10-29 23:59:37"},{"y":8002,"x":"2025-11-03 19:18:37"},{"y":8002,"x":"2025-11-12 04:52:27"},{"y":7959,"x":"2025-11-16 04:28:22"},{"y":7959,"x":"2025-11-20 09:13:14"},{"y":7959,"x":"2025-11-24 03:34:13"},{"y":7960.35,"x":"2025-11-27 20:18:03"},{"y":7960.35,"x":"2025-11-30 04:01:25"},{"y":7959,"x":"2025-12-04 21:03:14"},{"y":7752,"x":"2025-12-09 01:29:45"},{"y":7752,"x":"2025-12-11 08:18:40"},{"y":7752,"x":"2025-12-16 22:31:02"},{"y":7752,"x":"2025-12-25 17:23:23"},{"y":7752,"x":"2025-12-29 05:16:41"},{"y":7752,"x":"2026-01-05 23:40:40"},{"y":10429,"x":"2026-03-05 20:45:22"},{"y":8197,"x":"2026-03-12 20:58:20"},{"y":6881,"x":"2026-03-20 20:49:17"},{"y":8893,"x":"2026-03-29 05:39:05"},{"y":6881,"x":"2026-04-05 11:00:43"},{"y":6881,"x":"2026-04-05 11:00:43"}],"Price":{"TotalPrice":445206.69999999995,"Count":54,"MinPrice":6881,"MinPriceOn":"2026-03-20 20:49:17","MaxPrice":11417,"MaxPriceOn":"2025-10-15 12:47:51","Price":6881,"MRP":12893,"UpdatedOn":"2026-04-05 11:00:43","OfferPrice":6881,"LastPrice":6881,"DailyPrice":179893382,"MinOfferPrice":6881,"MinOfferPriceOn":"2026-03-20 20:49:17"}}'));
}, 500);
});
function refreshPrice() {
let ResponseBlock = document.getElementById("refresh-price-response");
fetch("https://price-history.in/api/report/refresh/vnzLYASj", {
method: "post",
headers: FetchHeaders,
body: JSON.stringify({})
})
.then((response) => {
if (response.status == 401) {
location.reload();
} else return response.json();
})
.then((response) => {
ResponseBlock.innerHTML = "Your request received. New Price will be updated Soon";
ResponseBlock.classList.remove("d-none");
})
.catch((err) => {
ResponseBlock.classList.remove("d-none");
ResponseBlock.innerHTML = "Sorry, Something Went Wrong!";
});
}
Similar Products
Product Details
Product Code
B0CV61WP8F
Market Place
amazon.in
Store
Amazon
Rating
4.8 (488 ratings)
Manufacturer
YETI
Model Number
21071503995
Model Name
Bottle with Straw Cap
Dimensions
10.3W x 7.7H Centimeters
Country of Origin
USA
Frequently Asked Questions