|
question about save chart setting |
Posted by fatma on Apr-10-2013 18:20 |
|
i make acookies that store parmeters that user select and i want to load chart with this parameter how i do that |
Re: question about save chart setting |
Posted by Peter Kwan on Apr-11-2013 04:31 |
|
Hi fatma,
In your charting code, you may obtain the cookie parameters, and create the chart based on those parameters. For example, if one of your cookie parameters is the chart size, you may use that parameter as the chart size (instead of hard coding the size to a fix value).
Hope this can help.
Regards
Peter Kwan |
Re: question about save chart setting |
Posted by fatma on Apr-11-2013 15:42 |
|
what about basechart.makesession |
Re: question about save chart setting |
Posted by Peter Kwan on Apr-11-2013 16:59 |
|
Hi fatma,
Do you mean you want to store a chart in the cookie? In most browsers, the cookie is limited to a few KBytes. The chart is typically much larger in size. So it would not be possible to store the chart itself in the cookie.
The makeSession makes the chart image and stores it in a PHP session variable. In most PHH sysmtes, the PHP identifies the session by using session cookies, and automatically times out the session after a certain period of inactivity. You may refer to PHP documentation for more details on PHP sessions.
Regards
Peter Kwan |
|