Code Monkey home page Code Monkey logo

dreamforce2014-d3.js's Introduction

Dreamforce 2014 – Introduction to D3.js

This repo contain source code for Dreamforce 2014 Talk “Introduction to D3.js”, contains the following demo codes

  • Draw Circle
  • Dynamic Circle – Data Joins
  • Bar Chart
  • Line Chart
  • Analytics API Tree Chart
  • Conversion Analysis

  • Please find the link below for unmanaged package to install in your salesforce.com org https://login.salesforce.com/packaging/installPackage.apexp?p0=04tU0000000ILHz

    Slide deck

    https://www.scribd.com/doc/243267456/Introduction-to-D3-js

    Report

    Make sure you have deployed the report called “Dreamforce2014” which is used as backend data source for Bar, Line, Tree charts so without it, you may get errors. This chart is available in report folder.

    Note

    You need appropriate data for line/bar chart, there is same data in this repo it needs to be imported or you need to have good amount of data which is distributed over period of time. If you are importing data use data loader and make necessary mapping to account though it is not required for charting.

    Design Notes

    • On page load we execute a soql query to get report id of "Dreamforce2014" report using Forcetk Client Library
    • Call the reporting api to get Dreamforce2014 report metadata and data on callback success from previous step
    • We process and store this data in google charts datatable which is another library for charting but I'm using it as client side storage which reporesents a matrix like data structure with apis to slice/dice the data. Since there is no good client storage solution available at this point I have to stick with this, I looked at indexDb I feel its lot of code to do simple things.
    • Twitter Bootstrap is used for designing layouts, etc
    • I have event handler function which invokes corresponding chart functions when the relevant chart list items are clicked

dreamforce2014-d3.js's People

Contributors

ramanathansj avatar

Stargazers

Riyadh Hossain avatar Andy Hitchings avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.