Can we use Gregorian dates together with a Georgian to Persian date converter script to show Persian dates in Highchart
and Highstock
?
I developed a Jalali Date library, JDate, that is compatible with original javascript Date
class. Dates in highchart/highstock charts can be converted to Jalali by replacing window.Date
with JDate
. With this method all date outputs is converted to jalali calendar, And also, date input features (like YTD feature, or range selector) works with jalali calendar.
Demo: https://tahajahangir.github.io/jdate/jalali-highcharts-demo.html
The main part of script in above demo, is: