Displaying Persian dates in highchart from its corresponding Georgian date

后端 未结 5 1847
迷失自我
迷失自我 2021-02-04 10:30

Can we use Gregorian dates together with a Georgian to Persian date converter script to show Persian dates in Highchart and Highstock?

5条回答
  •  囚心锁ツ
    2021-02-04 10:50

    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 Jalali date support for highcharts

    The main part of script in above demo, is:

    
    
    

提交回复
热议问题