Ask Your Question
3

Is there a way to prevent fl_chart from automatically generating the range in the X axis?

asked 2023-05-01 10:10:30 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-01 10:31:02 +0000

nofretete gravatar image

Yes, you can manually set the range of the X axis by using the following code:

LineChartData(
  minX: 0,
  maxX: 10,
  ...
)

This will set the minimum value of the X axis is 0 and the maximum value is 10. You can also set the range dynamically based on your data.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-01 10:10:30 +0000

Seen: 8 times

Last updated: May 01 '23