bar-chart-google.lisp 345 B

1234567
  1. (dolist (chart-type '(:v-bar :h-bar :v-gbar))
  2. (with-gchart (chart-type 400 300)
  3. (add-series "A" '((-1 -2) (0 4) (1 5) (4 6) (5 -3)))
  4. (add-series "B" '((-1 4) (0 -2) (1 6) (5 -2) (6 5)) :color (make-color "ff0000"))
  5. (add-features :label)
  6. (add-title chart-type)
  7. (save-file (format nil "bar-chart-google-~a.png" chart-type))))