Issue 1968 in google-visualization-api-issues: Bug: Line Chart Y-Axis label value overlaps other Y-Axis label value

0 views
Skip to first unread message

google-visualiz...@googlecode.com

unread,
Apr 29, 2015, 7:06:47 PM4/29/15
to google-visualiz...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1968 by victorta...@gmail.com: Bug: Line Chart Y-Axis label value
overlaps other Y-Axis label value
https://code.google.com/p/google-visualization-api-issues/issues/detail?id=1968

What steps will reproduce the problem? Please provide a link to a
demonstration page if at all possible, or attach code.
1. Add a line chart with the below code.
2. You will see I used dates/and number with decimal
3. Add high numbers within the tick range see code for example:
(Code also attached in a file).

var data = new google.visualization.DataTable();
data.addColumn('string', 'Date');
data.addColumn('number', 'IS Value');

data.addRow(['01/01/2015', parseFloat(10.00)]);
data.addRow(['03/01/2015', parseFloat(09.01)]);

var options = {
title: 'Patient IS (%) History',
legend: { position: 'bottom' },
width: 500,
height: 300,
lineWidth: 3,
pointSize: 10,
vAxis: { scaleType: "mirrorLog", title: 'IS (%) BCR-ABL',
ticks: [{ v: 0.00, f: '0.00' }, { v: 0.01, f: '0.01' }, { v: 0.10,
f: '0.10' }, { v: 1.00, f: '1.00' }, { v: 10.00, f: '10.00' }, { v: 100.00,
f: '100.00'}] },
hAxis: { title: 'Test Date' }
};
var chartDiv = document.getElementById('chart_div');
var chart = new google.visualization.LineChart(chartDiv);

console.log(chartDiv.innerHTML);
chart.draw(data, options);


What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?
This issue is related to the LineChart graph.


Are you using the test environment (version 1.1)?
(If you are not sure, answer NO)
NO

What operating system and browser are you using?
Windows 7 64 bit, Chrome browser.


*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************


Attachments:
CodeIssue.txt 1.0 KB
Chart.png 16.2 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-visualiz...@googlecode.com

unread,
Apr 30, 2015, 8:19:10 AM4/30/15
to google-visualiz...@googlegroups.com
Updates:
Status: Accepted
Owner: dlalibe...@google.com

Comment #1 on issue 1968 by dlalibe...@google.com: Bug: Line Chart Y-Axis
Thanks for your report. The overlapping ticks is caused by a flaw in the
axis generation such that it first lays out the range of the axis based on
your data and independent of your ticks, and then it adds the ticks. Since
your data doesn't extend into the small numbers, the range is limited.

But I can understand your need for displaying the axes and ticks correctly
even without any data. I'll see if I can change the algorithm to account
for the ticks.

google-visualiz...@googlecode.com

unread,
Apr 30, 2015, 1:22:48 PM4/30/15
to google-visualiz...@googlegroups.com

Comment #2 on issue 1968 by victorta...@gmail.com: Bug: Line Chart Y-Axis
Hi, I just wanted to thank you for looking into this issue. I really
appreciated.
Victor

google-visualiz...@googlecode.com

unread,
May 4, 2015, 5:58:03 PM5/4/15
to google-visualiz...@googlegroups.com

Comment #3 on issue 1968 by victorta...@gmail.com: Bug: Line Chart Y-Axis
Hi I wanted to check if we have some time frame of when we think this issue
could be resolved and be available to use the fix. Thank you so much.

google-visualiz...@googlecode.com

unread,
May 5, 2015, 8:54:39 AM5/5/15
to google-visualiz...@googlegroups.com

Comment #4 on issue 1968 by dlalibe...@google.com: Bug: Line Chart Y-Axis
I will try to get this fixed by the next release, so it will take at least
a month before you will see it.

google-visualiz...@googlecode.com

unread,
May 5, 2015, 11:08:54 AM5/5/15
to google-visualiz...@googlegroups.com

Comment #5 on issue 1968 by victorta...@gmail.com: Bug: Line Chart Y-Axis
Cool thank you!
Reply all
Reply to author
Forward
0 new messages