This is a plugin for CanvasJS StockCharts that lets you add HTML5 datepicker to inputfields of StockChart just by adding a line of code. Check out Github Repository for more info / examples.
Github Repo: https://github.com/vishwas-r/CanvasJS-Inputfields-Type-Changer
var stockChart = new CanvasJS.StockChart("stockChartContainer", { . . . //StockChart Options . . . }); stockChart.render(); stockChart.ChangeInputFieldsType(); /* or CanvasJS.ChangeInputFieldsType(); //If you like to change type of inputfields across all the StockCharts in the page */