[Nottingham] Web page graphs/charts
David Aldred
davidaldred at gmail.com
Tue Nov 29 17:58:44 UTC 2011
Like most things on web, it depends on your intended audience, and the
constraints you may be working with. If you're aiming a site at all NHS
users, for example, you're stuck with need to support of IE6 as many NHS
trusts won't upgrade.
If your IE users are likely to have the option of - and be willing to -
install Chrome Frame, then you can offer that, and provide an SVG.
If you can rely on all users having Javascript turned on, then JQPlot is a
(possibly overkill) option.
However, If you can rely on IE users having Javascript switched on (which
would be a requirement of that option), then you can use an SVG and
browser-sniff in Javascript to load a PNG instead if the browser is IE<9 -
this is probably simpler and lighter.
Presumably you'd have to provide alternative content for visually disabled
users anyway, so you could take the last option, and leave (probably
relatively few) IE<9 users browsing without JavaScript to use the
alternative content - the same data in a table, perhaps.
David Aldred
On 29 November 2011 17:39, Rory Holland <rory at linux.com> wrote:
> You can use JQuery to actually render the graph itsself in the user's
> browser.
> Look into JQPlot, although it might be overkill. SVG sounds better, with a
> PNG fallback.
>
>
> On 29 November 2011 17:36, Mike Martin <mike at redtux.org.uk> wrote:
>
>> On 29 November 2011 17:19, Paul Sladen <notlug at paul.sladen.org> wrote:
>> > On Tue, 29 Nov 2011, Martin wrote:
>> >> Rather than posting a fixed-size fixed resolution jpg/png image of
>> >> a graph plot, is there a way to display graphs/charts that scale
>> >
>> > Most browsers render SVG these days. Or failing that:
>> >
>> > <a href="big-version.pdf"><img src="small-version.png"/></a>
>> >
>> > -Paul
>> >
>> >
>> >
>>
>> you could also do some javascript detection of browser size and feed
>> into php/perl and resize on the fly using GD
>>
>> _______________________________________________
>> Nottingham mailing list
>> Nottingham at mailman.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>>
>
>
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20111129/17aa489a/attachment.htm>
More information about the Nottingham
mailing list