https://github.com/Netflix/atlas
Revision 7e7d093b8b8e63768f4a31650860e738dff22b35 authored by brharrington on 29 June 2017, 16:34:41 UTC, committed by GitHub on 29 June 2017, 16:34:41 UTC
When trying to render a chart with a long time range a NoSuchElementException would result if the graph width was too small. Sample exception below: ``` java.util.NoSuchElementException: head of empty list at scala.collection.immutable.Nil$.head(List.scala:428) ~[scala-library-2.12.2.jar:?] at scala.collection.immutable.Nil$.head(List.scala:425) ~[scala-library-2.12.2.jar:?] at com.netflix.atlas.chart.graphics.Ticks$.time(Ticks.scala:265) ~[atlas-chart_2.12-1.6.0-SNAPSHOT.jar:1.6.0-SNAPSHOT] ``` The cause is that there were no options for meeting the desired number of major ticks given the options for timeTickSizes. This change uses a simpler selection method with just major ticks for longer ranges setting it to the name of the month or year.
1 parent be4cd8b
Tip revision: 7e7d093b8b8e63768f4a31650860e738dff22b35 authored by brharrington on 29 June 2017, 16:34:41 UTC
fix error when rendering with a long time range (#624)
fix error when rendering with a long time range (#624)
Tip revision: 7e7d093
File | Mode | Size |
---|---|---|
atlas-akka | ||
atlas-chart | ||
atlas-config | ||
atlas-core | ||
atlas-eval | ||
atlas-jmh | ||
atlas-json | ||
atlas-lwcapi | ||
atlas-module-akka | ||
atlas-module-cloudwatch | ||
atlas-module-eval | ||
atlas-module-lwcapi | ||
atlas-module-webapi | ||
atlas-poller | ||
atlas-poller-cloudwatch | ||
atlas-standalone | ||
atlas-test | ||
atlas-webapi | ||
atlas-wiki | ||
conf | ||
project | ||
scripts | ||
.gitignore | -rw-r--r-- | 242 bytes |
.travis.yml | -rw-r--r-- | 951 bytes |
LICENSE | -rw-r--r-- | 11.1 KB |
Makefile | -rw-r--r-- | 2.3 KB |
OSSMETADATA | -rw-r--r-- | 20 bytes |
README.md | -rw-r--r-- | 989 bytes |
build.sbt | -rw-r--r-- | 5.3 KB |
Computing file changes ...