GreenInfo-Network / nyc-crash-mapper-chart-view

Chart view for NYC Crash Mapper that allows for viewing Trends, Comparing, and Ranking of various NYC geographies
http://vis.crashmapper.org
MIT License
2 stars 1 forks source link

Trend & Compare: Period lengths + note if not equal #102

Closed gregallensworth closed 6 years ago

gregallensworth commented 6 years ago

Both Trend and Compare,

gregallensworth commented 6 years ago

Here we go:

Compare

Duration of each period is displayed. Messages are displayed if the durations are inequal OR if the durations are not the same months.

image

image

Note that the two sections are separately controlled halves of a two-column layout, so it would be non-trivial to create a double-width message spanning both halves and centered across the page.

gregallensworth commented 6 years ago

Here we go Trend

Again with a message describing either a mismatched duration or a mismatched start-month.

Here, placing one across the middle between the two charts seemed to make sense as well as being technically easy.

image

image

gregallensworth commented 6 years ago

Ready for review, see new gda-issue102-chartdatespans branch.

danrademacher commented 6 years ago

So just checked out, ran locally using npm start and getting this: image

That's a totally new one to me, at least the giant RED screen formatting of error.

gregallensworth commented 6 years ago

This should be fixed as of commit 1466008

This corrects the handling of the date range stuff in two ways:

gregallensworth commented 6 years ago

Merged, and looking good.

danrademacher commented 6 years ago

Huh. Client response:

In the trend area, remove the mention “ it’s best to select two periods of the same duration” - The comment does not apply to trend in the compare area I like the reminders of months. Change the mention to “ Select two periods with same start month and duration.” Put in in lower case and small type Put number of months in smaller font as well

None of these seem hard, though also debatable.

Thoughts?

gregallensworth commented 6 years ago
gregallensworth commented 6 years ago

image

image

gregallensworth commented 6 years ago

Already done and deployed two weeks ago. Closing.