-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Setting domain axis viewport has no effect in TimeSeriesChart #287
Comments
This is because of the autoViewport setting in the Axis class ( |
You're right. So, to fix that, the workaround is to create a class which extends DateTimeAxisSpec of charts_flutter and override the configure method like that :
Thank you so much. You saved my day ! |
Thank u very much. I struggled tow weeks on this issue. U saved my life |
For any others that find this thread. I had to also pass a viewport as follows. HTH
|
Chart embraces the whole data range despite the time axis viewport being configured to display only one day. In the below snippet the line that sets the viewport for domain axis has no effect.
charts_flutter package version: 0.6.0
The text was updated successfully, but these errors were encountered: