;;; -*- mode: Lisp; Syntax: Common-Lisp; -*- ;;; ;;; Copyright (c) 2009 by the authors. ;;; ;;; See LICENCE for details. (in-package :hu.dwim.presentation) ;;;;;; ;;; component/chart (def (component e) component/chart () () (:documentation "Base class for various chart components. This class does not have any slots on purpose.")) ;;;;;; ;;; standard/chart (def (component e) standard/chart (standard/component component/chart) ((configuration-provider :type (or symbol function)) (data-provider nil :type (or symbol function)) (width 600 :type number) (height 400 :type number))) (def function render-chart (component kind) ;; TODO: move this to frame or something higher? (bind ((path (string+ "/static/hdp/amCharts/" kind "/")))