Hi Dominik,
Thank you for your response. I tried two approaches for this problem and one of is your suggestion in this post, but both of them did not work that I wanted. Let me explain to you.
As I stated in above, I want users to see the chart daily, weekly, monthly basis in whatever date range. For example, user can see 2 years data on monthly basis.(There should be 24 data points.) or 6 months data on weekly basis.(There should be 24 data points.) These are my solutions that I tried:
1. Use extra buttons on range selector
Demo:
https://codesandbox.io/s/data-grouping- ... c/index.js
Problems:
1. When user clicks the week button on the range selector, it will show the data weekly which is good. But, the date range is also a week. I know I can change the count parameter in the button settings, but it still show one date range which depends on the count parameter. Unlike of these, I want users can see whatever date range they want to see. For example there is 10 years data in the chart and first, user select 5 years span or 6 month span etc. and click week button. After users should see 5 years or 6 months of data on weekly basis.
2. When user clicks the week button on the range selector, and after change the date range from the date picker, the data returns the old format like daily basis. Also, this still happens when you slide the bottom date range selector.
https://monosnap.com/file/5gO16UXUh4FyP ... kvZIGgb9Dt
2. Use custom button
Demo:
https://codesandbox.io/s/pie-chart-fork ... c/index.js
At this approach, the other approach's problems are not exist which is good. But there is one:
1. If you add some technical indicators to the chart and click "Show data weekly" then the technical indicators are gone. I tried to solve this but couldn't find anything. No such thing in annotations, tags etc. However, technical indicators cannot be charted.
You can try the cases which I stated on demo's. I hope I explained well. I will be appreciate if you help me on this. Both approaches will be applicable from me if these problems are gone.
Thank you for your consideration!