Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I have to develop the dynamic graphs to be displayed on mobile devices. What would be the best option available in terms of architecture and technology.
Posted

1 solution

It depends on your target platform(s).

The easiest approach will be with a web-based solution as your users won't have to install anything and you'll not need to create binaries for a swath of devices.

If you are going to be on devices that fully support JavaScript, you can use any one of a number of JavaScript frameworks to generate the graphs.

If you can't rely on the devices to render them with JavaScript, you'll need to render the graphs server-side and output them as images on-the-fly.

I have done this in the past and used this approach:
1) When the page was requested I computed (and cached) a unique key for each of the graphs to be rendered.
2) The graph key was set up as the src attribute of the image.
3) The browser requests the image and a custom handler accepts the key, returning the generated image.

There are third party graphing libraries that can produce images as well, so you don't need to re-invent the wheel there.

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900