James Ekema
11/07/2025, 8:18 PMJames Ekema
11/07/2025, 8:18 PMkapa.ai
11/07/2025, 8:18 PMtrendBy prop in your chart component and updating it based on user selection [Community Slack](https://gooddataconnect.slack.com/archives/C01UR5BGAHY/p1724859800020409?thread_ts=1724859800.020409&cid=C01UR5BGAHY). Example (React/GoodData.UI): javascript const ExampleLineChart = () => { const [trendBy, setTrendBy] = useState(Md.DateMonth.Short); // ...dropdown to select trendBy (day, week, month, etc.) return ( <LineChart measures={[/* your measures */]} trendBy={trendBy} // other props /> ); }; You would need to provide the logic for the dropdown and update trendBy accordingly. Summary: - There is no built-in "auto" or "best fit" granularity switch based on the date filter. - Manual adjustment is possible, and you can build a plugin or UI control to let users select the granularity themselves. - This feature has been requested and is under consideration for future releases. For more details, see the relevant community discussions and documentation: - [Community Slack discussion on dynamic granularity](https://gooddataconnect.slack.com/archives/C04S1MSLEAW/p1737714283714999?thread_ts=1737714283.714999&cid=C04S1MSLEAW) - [Plugin implementation advice](https://gooddataconnect.slack.com/archives/C01UR5BGAHY/p1724859800020409?thread_ts=1724859800.020409&cid=C01UR5BGAHY)