softwaredev1
Posts: 1
Joined: Wed Jan 22, 2025 1:42 pm

Range Selector Date Picker

I am implementing a chart. I want to implement a date picker that uses week selections instead of days.
kamil.m
Site Moderator
Posts: 917
Joined: Thu May 19, 2022 1:33 pm

Re: Range Selector Date Picker

Hi there,

Highcharts Stock date picker uses browsers built in input field. The input type cannot be changed to week, via API properties. Therefore, you have two options here:
1. Create your own input fields with week type and call axis.SetExtremes() method on them to change the data range on your chart.
2. Wrap the drawInput function in the rangeSelector object and replace the input type with week type.

https://developer.mozilla.org/en-US/doc ... input/week
https://www.highcharts.com/docs/extendi ... highcharts
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Stock”