Okay, we have an internal bug filed on this as well. I'll get to work
stomping it. Right now, I'm sorry, but I don't have a work around for you.
As penance, I can't make any promises, but I'll try to get the fix into the
next release though.
On Tuesday, July 15, 2014 8:43:39 AM UTC-4, abhisek mishra wrote:
>
> Adding one image for quick reference. The upper one is normal one and the
> lower one is from img data, here you can easily notice the clipping. I have
> already shared the code in the previous mail.
>
> On Tuesday, 15 July 2014 16:43:15 UTC+5:30, abhisek mishra wrote:
>>
>> Thanks Jeremy for reverting back. I am attaching a folder debugCode.zip
>> along with this mail. To reproduce the scenario please follow these steps:
>>
>> 1) unzip the folder and open graphIssue.html.
>> 2) You will be able to see the image and img data in the browser it self.
>> 3) Please copy the image data to a text file .
>> For example the img data will be "
>> data:image/png;base64,iVBORw0KGgoA.......FTkSuQmCC", Please ignore
>> *data:image/png;base64,
>> *and copy rest of the data to a text file.
>> I have copied the same inside "imgData.txt".
>>
>> Now run the following command to create a png file ( I am on mac)
>> *base64 -D imgData.txt > img.png*
>>
>> 4) Please open img.png and you can see it is slightly clipped along the
>> borders.
>>
>> I have copied everything inside the zip, please feel free to ask me if I
>> am missing something. Thanks a lot for your help and support.
>>
>>
>>
>>
>>
>>
>> On Monday, 14 July 2014 23:12:49 UTC+5:30, Jeremy Faller wrote:
>>>
>>> Hello.
>>>
>>> I wrote that image mode, and continue to fix bugs in it. :) If you send
>>> us some example code that demonstrates the problem, I'll take a look and
>>> stomp the bugs.
>>>
>>> On Saturday, July 12, 2014 12:49:08 AM UTC-4, abhisek mishra wrote:
>>>>
>>>> Hi,
>>>> I am calling getImageURI to fetch the png data of LineChart, but the
>>>> image data is returning slightly cropped image at the borders. Please let
>>>> me know if anyone else faced the similar issue before.
>>>>
>>>> var chart = new google.visualization.LineChart(container);
>>>>
>>>> google.visualization.events.addListener(chart, 'ready',
>>>> function () {
>>>>
>>>> document.getElementById('dataHolder').innerHTML =
>>>> chart.getImageURI();
>>>>
>>>> });
>>>>
>>>> chart.draw(data, options);
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.