Unable to view Visualizations
vandanphadke opened this issue · comments
I have followed the tutorial given in readme but I am getting empty files(with no visualizations). The code is the same as given in the tutorial and I am using python to create httpserver.
Do I need to install any other dependencies ?
Can you please post you exact coe an archive with the results?
Following is my code
(ns sample
(:require [clojurewerkz.envision.core :as envision]
[clojurewerkz.envision.chart-config :as cfg]))
(envision/render
[
(envision/linear-regression
(flatten (for [i (range 0 20)]
[{:year (+ 2000 i)
:income (+ 10 i (rand-int 10))
:series "series-1"}
{:year (+ 2000 i)
:income (+ 10 i (rand-int 20))
:series "series-2"}]
))
:year
:income
[:year :income :series])
(cfg/make-chart-config
{:id "line"
:headline "Line Chart"
:x "year"
:y "income"
:x-config {:order-rule "year"}
:series-type "line"
:data (flatten (for [i (range 0 20)]
[{:year (+ 2000 i)
:income (+ 10 i (rand-int 10))
:series "series-1"}
{:year (+ 2000 i)
:income (+ 10 i (rand-int 20))
:series "series-2"}]
))
:series "series"
:interpolation :cardinal
})
(cfg/make-chart-config
{:id "area"
:headline "Area Chart"
:x "year"
:y "income"
:x-config {:order-rule "year"}
:series-type "area"
:data (into [] (for [i (range 0 20)] {:year (+ 2000 i) :income (+ 10 i (rand-int 10))}))
:interpolation :cardinal
})
])
I have attached the files here
Hey, any updates regarding this ? I am really stuck at this stage
@Vandan-V-Phadke the person who maintains this project is currently on vacation. This is open source software, feel free to investigate what's going on.