Mobile Charts

Why not have a link, immediately following the image, that opens a new page with the “image-source-data.html”

Not yet.

I hope to save up and buy a used one off of eBay this coming year, although Chrome’s device emulator - does it have a proper name? - seems to work pretty well.

I have for my website in general, but I haven’t converted this article to a web page yet. I also have to learn how to make responsive images - I think I had a thread on this several months ago but it go put on hold because I can only learn so much at a time!

It seems to me that if I can make the original line graph more square, that solves a lot of the issues. Then I think your width: 100% will also help. It also seems okay to force smartphone users to scroll to the right for a rectangular graph - how else could you see it if you have a rectangular graph on a square display?

Learning how to do this with JavaScript sounds cool, but since I don’t know any that is a longer term solution.

Once again, I am over my head in new learning I have to do!

That is an option, but if I used JavaScript to expand/collapse it, wouldnt that be better because the data would be on the same page as the graph and there for more accessible and better for search engines?

I could also add an anchor (?) and place the table at the end of the page almost like a footenoote, so then people could view in greater detail the data, but it would be out of the way when you read the article. I think I like that.

Yes that’s an option as long as it is hidden off screen and not with display:none etc.

You could even incorporate into my demo and just remove the image to show the table. Here’s an updated example:

http://www.pmob.co.uk/temp2/chart6.html

The above uses the checkbox hack to hide and show but could be converted to js pretty easily if required. Again its just a proof of concept without deep thought behind it yet.

Yes that would be a good alternative.

1 Like

This brief paragraph from WebAIM might be helpful:

http://webaim.org/techniques/alttext/#complex

1 Like

@mikey_w

It also seems okay to force smartphone users to scroll to the right for a rectangular graph - how else could you see it if you have a rectangular graph on a square display?

Try this Explanation from Apple.

Edit
I think the pinch and zoom feature is enabled with a one line meta tag that I cannot access at the moment because pecking on a mobile :slight_smile: Maybe someone could confirm if the meta tag is required or all images have this feature.

Pinch and zoom is available unless you have disabled user-scale in your meta tag. (If that’s what you were asking).

That’s the method I suggested in my first post and showed an example of how a wide table could be sideways scrolled on small screen, although the example seems to be missing the link to jquery at the moment as the edge of the table should get a shadow to indicate there is more to the side and visible scrollbars should appear. (The problem with sideways scrolling on small devices is that there is no clue that you need to scroll sideways as scrollbars don’t appear automatically like normal devices.)

1 Like

Yes, I saw that.

Sounds like a good place to add a media query with text tht appears like this…

Scroll right to see entire table --->

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.