Saturday, April 30, 2016

Using Variance chart with Clojure generated data

After playing with CSV data in previous blog we will start use this data in Variance charts. I choose Variance chart due to simplicity and speed :

<script src="http://variancecharts.com/cdn/variance-noncommercial-standalone-6d26aa2.min.js" charset="UTF-8"></script>
This Variance chart represent simple



Change in Global Surface Temperature, 5 Year Mean

{{value}}°
Let's take Clojere data see Result of CSV conversion code bellow
(Clojure code described in prev. blogs).
#object[clojure.lang.Atom 0x147e2ae7 {:status :ready, :val {:Mortgage 186152, :Debt_collection 100719, :Bank_account_or_service 62437, :Cred
it_reporting 91533, :Money_transfers 3798, :Prepaid_card 2464, :Credit_card 66303, :Other_financial_service 548, :Consumer_Loan 20925, :Stud
ent_loan 15800, :Payday_loan 3862, :ver 0.0.1}}]

This will be converted to JSON  See this link for more details : After conversion prepare CSV file or place directly inline in HTML like here -->:

  product,events
   "Mortgage", 186152,
   "Debt_collection", 100719
   "Bank_account_or_service", 62437
   "Credit_reporting", 91533
   "Money_transfers", 3798
   "Prepaid_card", 2464
   "Credit_card", 66303,
   "Other_financial_service", 548
   "Consumer_Loan", 20925
   "Student_loan", 15800
   "Payday_loan", 3862



product,events "Mortgage", 186152, "Debt_collection", 100719 "Bank_account_or_service", 62437 "Credit_reporting", 91533 "Money_transfers", 3798 "Prepaid_card", 2464 "Credit_card", 66303, "Other_financial_service", 548 "Consumer_Loan", 20925 "Student_loan", 15800 "Payday_loan", 3862

Customer Complaints events

{{product}}

No comments: