Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

"Non-zero bound Axis" doesn't work if values are around 0 #64

Open
palkatap opened this issue Jun 6, 2018 · 0 comments
Open

"Non-zero bound Axis" doesn't work if values are around 0 #64

palkatap opened this issue Jun 6, 2018 · 0 comments

Comments

@palkatap
Copy link

palkatap commented Jun 6, 2018

I modified the example code in nonzero_bound_measure_axis.dart as follows:

static List<charts.Series<MyRow, DateTime>> _createRandomData() {
final random = new Random();
final int base = 100;

final data = [
  new MyRow(new DateTime(2017, 9, 25), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 9, 26), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 9, 27), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 9, 28), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 9, 29), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 9, 30), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 10, 01), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 10, 02), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 10, 03), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 10, 04), random.nextInt(100) + base),
  new MyRow(new DateTime(2017, 10, 05), random.nextInt(100) + base),
];

It works if base > 0 or base < -100 but not if base is around -50

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant