Chart Codes

From Lijst.com Wiki

Revision as of 12:34, 4 April 2009 by Nederhoed (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
3393898090_03349e3825_m.jpg

You can configure your chart using a pattern in the URL:

http://www.lijst.com/<username>/lists/<list id>/img[/<parameters>]/spline.png

The spline.png chart draws a curved line between known List values. If you would like other chart types on Lijst.com, please add your wish to feedback.lijst.com.

Contents

Parameters Pattern

[Dated      ][Interval #days][Image Size]
[/<end date>][/days/<number>][/size/<width>x<height>]

/20090101/days/365/size/640x160/spline.png

Markup:

  • <value> indicates value is a variable to be substituted.
  • [/name/<value>] indicates name is an optional parameter.

Lijst.com currently lets you adjust the date interval and image size.

Date Interval

A chart can be limited to a time window. This interval can be set using the number of days to show.

The end of the interval is set to the moment of the request (now).

Not Implemented [/<end date>]

Format: YYYYMMDD

The inclusive end date of the interval to chart. When not submitted, this value defaults to today.

Examples

/20100101
Chart will contain data up to and on the first of Jan 2010.
/20091231
Chart will contain data up to the first of Jan 2010.

[/days/<number>]

The number of days to show.

For now, a negative number of days is allowed. negative days might become invalid in the future. Using a negative number of days enables you to show a chart of upcoming data.

Examples

/days/30
Show the last 30 days, equivalent to the default
/days/1
Show the chart for all today's values

Combined examples

/20081231/days/31
Chart data in December 2008
/20081231/days/365
Chart all of 2008

Image Size

Not Implemented /size/[width]x[height]

  • Width/height ratio defaults to 4/3. The same ratio as 640x480 pixels (old skool VGA).

Examples

/size/160x160
Set chart image size to a squared of 160 by 160 pixels.
/size/640x
Set width to 640 pixels. Height will follow the default width/height ratio of 4/3: 480 pixels
/size/x180
Set height to 180 pixels. Width will be relative: 240 pixels.

Examples

Default values for optional parameters vary per Lijst.com URL.

/<username>/lists/<list id>/img/[<parameters<]/spline.png

default days: /days/30
default size: /size/240x180
minimum size: 160x120
maximum size: 1600x1200
URL
http://www.lijst.com/nederhoed/lists/1/img/spline.png
is equivalent to
http://www.lijst.com/nederhoed/lists/1/img/days/30/size/240x180/spline.png

30 days in 240x180 pixels (default)

http://www.lijst.com/nederhoed/lists/1/img/spline.png

3393898090_03349e3825_m.jpg
Using default values to show the last 30 days in a 240x180 pixels image.

A year in 640x480 pixels

http://www.lijst.com/nederhoed/lists/1/img/days/365/size/640x160/spline.png

lijst-logo-70x70.png
A custom chart: 640x160 pixels, showing last year's values: 365 days.