Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to view Visualizations #2

Open
vandanphadke opened this issue Aug 31, 2016 · 4 comments
Open

Unable to view Visualizations #2

vandanphadke opened this issue Aug 31, 2016 · 4 comments
Assignees

Comments

@vandanphadke
Copy link

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 ?

@michaelklishin
Copy link
Member

Can you please post you exact coe an archive with the results?

@vandanphadke
Copy link
Author

vandanphadke commented Aug 31, 2016

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

envision-1472653123325-3768944352.zip

@vandanphadke
Copy link
Author

Hey, any updates regarding this ? I am really stuck at this stage

@michaelklishin
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants