You must be logged in to post your query.
Home › Forums › Chart Support › shamsi date in canvasjs
Tagged: use shamsi date in canvasjs
how can i use shamsi date(1370/06/31) in option of canvasjs in datePoints
dataPoints: [ { x: new Date("2018-03-02"), y: 83.97}, { x: new Date("2018-03-05"), y: 83.49}, { x: new Date("2018-03-06"), y: 84.16}, ]
@homayonit,
You can convert the JavaScript Date to Shamsi date format using the lines of code as shown in this StackOverflow link. For achieving the same in charts, you can use labelFormatter of axisX and contentFormatter of toolTip as shown in this JSFiddle.
Considering this as a duplicate of shamsiDate in canvasjs and hence closing the same.
— Shashi Ranjan Team CanvasJS
You must be logged in to reply to this topic. Login/Register