Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5891 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi all friends

the attached HTML file shows a grafh of 12 columns on Win...

... but they are nine, because the last 3 are zero height.

Mac shows exactly, but Win NO.

Can someone expert of HTML say me why ?

P.S.: change the extension from .txt to .html and open with a browser.

test.txt

Posted

Its not so much an issue with Windows vs. Mac. It is a browser difference. If you open it on Firefox, you will see that it displays fine.

Posted

I've tried modifying every property i can think of and still can't get it working... IE7 just gives the element 19px of height for no reason, even if you remove padding, margins, line height, put in a max height, try and hide the overflow etc... why don't you use google charts or something: http://code.google.com/apis/chart/

Posted

Hi Genx

thanks for the link and many tanks for trying to solve the problem with IE.

I know that this is not a real issue with Win and Mac, but with their default browsers.

What it's still arguing me is why the same HTML can't be viewed exactly the same way on both platforms.

I would think that there was an ( my ) error into the code, but...

Posted

No there was nothing wrong with your code. IE is just a lousy browser. IE has had some issues with the DIV tag for quite some time; especially prior to 7.

Posted

why don't you use google charts or something: http://code.google.com/apis/chart/

because the HTML code is very simple and customizable and didn't need a web connection.

Posted

Well you can actually use this work around. It should work and for what you are trying to achieve it should be suffice. Still it is a rather annoying issue. :

Vert_E_Oriz_MODIFIED.zip

Posted

because the HTML code is very simple and customizable and didn't need a web connection.

The second point is well taken but the google api is hardly difficult to work out... Here's a pretty bar chart i put together after playing with it for 5 minutes:

http://chart.apis.google.com/chart?cht=bvg&chco=4d89f9,c6d9fd&chs=1000x300&chd=t:16,10,61,12,15,19|17,12,15,90,15,20&chxt=x,y&chxl=0:|Jan|Feb|Mar|Apr|May|June&chbh=50&chg=0,10&chdl=2008|2009

Posted

Well you can actually use this work around.

I'm trying to achive exactly corrispondence to numbers and height !

The work around is good only for 0 value; between it and 10 the graphic fails ( as you sure know : )

Posted

the google api is hardly difficult to work out...

Yes, it is very interesting and not too difficult to understand; I'm grate to you to show me that link.

Still needs the web connection.

Posted

Ah yes the lower number still do have the issue. I was aware of it earlier but it slipped my mind when I was modifying the file.

  • 2 weeks later...
Posted

I've tried modifying every property i can think of and still can't get it working... IE7 just gives the element 19px of height for no reason, even if you remove padding, margins, line height, put in a max height, try and hide the overflow etc...

Finally I found that this is a known bug of IE.

And there is a workaround...

and an: [color:red]  between the div tags.

Note that that is needed ONLY for vertical bar, not for the horizzontal one.

Vert_E_Oriz.zip

This topic is 5891 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.