Open Flash Chart :: wiki :: JSON

elements

Is an Array

example

{
    "elements":[
    {
      "type":      "bar",
      "alpha":     0.5,
      "colour":    "#9933CC",
      "text":      "Page views",
      "font-size": 10,
      "values" :   [9,6,7,9,5,7,6,9,7]
    },
    {
      "type":      "bar",
      "alpha":     0.5,
      "colour":    "#CC9933",
      "text":      "Page views 2",
      "font-size": 10,
      "values" :   [4,9,6,7,9,5,7,6,9]
    }
  ]
}

things that go in the elements array

Any object that has a 'type'.

(see charts/Factory.as)

The types supported are:

  • bar
  • line
  • area
  • pie
  • hbar
  • bar_stack
  • scatter
  • scatter_line
  • bar_sketch
  • bar_glass
  • bar_cylinder
  • bar_cylinder_outline
  • bar_dome
  • bar_round
  • bar_round_glass
  • bar_round3d
  • bar_fade
  • bar_3d
  • bar_filled
  • bar_plastic
  • bar_plastic_flat
  • shape
  • candle