Issue Summary
When using a categorical x-axis and a logarithmic scale y-axis, sometimes a bad value is selected as the max Y and results in data being truncated.
Steps to Reproduce
Using a prestodb datasource, enter the following query (or click here):
with sample as (
select 'a' as x, -1 as foo union
select 'b' as x, 0 as foo union
select 'c' as x, 1 as foo union
select 'd' as x, 10 as foo union
select 'e' as x, 100 as foo union
select 'f' as x, 1000 as foo union
select 'g' as x, 10000000000 as foo union
select 'h' as x, 1000 as foo union
select 'i' as x, 1000 as foo union
select 'j' as x, 1000 as foo union
select 'k' as x, 1000 as foo union
select 'l' as x, 1000 as foo union
select 'm' as x, 1000 as foo union
select 'n' as x, 1000 as foo union
select 'o' as x, 1000 as foo
)
select * from sample
Then create a chart with the x field on the x axis, the foo field on the y axis, configure the x axis as categorical, and set the y axis to logarithmic scale.
I would expect the Y axis to scale up to 10,000,000,000 (where x = 'g'), but instead the Y axis scales only to 10,000 and truncates the bar for g:

Technical details:
- Redash Version:
- Browser/OS: Firefox Nightly 60.0a1 (2018-02-09) (64-bit) / macOS High Sierra
- How did you install Redash: sql.telemetry.mozilla.org
Issue Summary
When using a categorical x-axis and a logarithmic scale y-axis, sometimes a bad value is selected as the max Y and results in data being truncated.
Steps to Reproduce
Using a prestodb datasource, enter the following query (or click here):
Then create a chart with the
xfield on the x axis, thefoofield on the y axis, configure the x axis as categorical, and set the y axis to logarithmic scale.I would expect the Y axis to scale up to 10,000,000,000 (where x = 'g'), but instead the Y axis scales only to 10,000 and truncates the bar for

g:Technical details: