Git Product home page Git Product logo

angucomplete-alt's Introduction

angucomplete-alt

This is a fork of Daryl Rowland's angucomplete (https://github.com/darylrowland/angucomplete) with a bit of tweaks such as:

  • change long attribute names to hyphenated ones
  • coding style similar to angular standard
  • refactored in general
  • jshint
  • more test coverage

To see a demo go here: https://ghiden.github.io/angucomplete-alt

###Key Features

  • Show just a title, a title and a description or a title, description and image in your autocomplete list
  • Deliberately minimally styled so you can customise it to your heart's content!
  • Reads JSON data and allows you to specify which fields to use for display
  • Simple setup - e.g. to pull data from a server, just set the url parameter

Extra Features

  • Request format function: if you need to tweak data before you send to your search API, you can set your own format function. Search query goes through your function and gets sent to your API.
  • Response format function: if you need to tweak response from the server before it gets processed by the directive, you can set your own format function. Raw HTTP response goes through your function. Thanks to @nekcih for proposing this feature.
  • Clear on selection: when you select an item, input field is cleared.
  • Blur event handling, thanks to @leejsinclair
  • Override suggestions
  • You can either bind an object or callback function
    • bind an object: it works as one-way-data-binding. It gets set when a selection is made.
    • callback function: when a selection is made by user, this callback is called with the selected object. When the selection is deselected, the callback is called with undefined. Thanks to @nekcih for proposing this feature.
  • Required support: It is a bit different from ng-required which becomes valid when there is any character in input field. This required becomes valid when a selection is made. Class name is "autocomplete-required" and customizable. Thanks to @alindber for the initial idea.
  • Custom texts for "Searching..." and "No results found", thanks to @vhuerta for this idea.
  • Be able to set initial value. This becomes handy if you use this directive for updating existing model.
  • Be able to set a error callback for ajax request
  • Add a callback for tracking input changes. Thanks to @urecio for the initial idea.
  • Auto match
  • Add callbacks for tracking focus in/out.
  • Enable/disable input field
  • Show scrollbar. See example #1
  • Clear input by sending $broadcast from parent scope. Thanks to @Leocrest for #61.
  • Override template with your own. When you use this feature, test throughly as it might break other features. Thanks to @sdbondi for #74.
  • Show all items.
  • Custom remote API handler which allows you to fully control how to communicate with your remote API. Thanks to @jbuquet
  • Custom search function for handling local data

Angular 1.2

From v2.0.0, I have dropped the support for angular 1.2. Please use angucomplete-ie8 which still supports 1.2.

Getting Started

Download the package, and include the dist/angucomplete-alt.min.js file in your page.

bower install angucomplete-alt --save

Or

npm install angucomplete-alt --save

Then add the angucomplete-alt module to your Angular App file, e.g.

var app = angular.module('app', ["angucomplete-alt"]);

Using local data

<angucomplete-alt id="ex1"
              placeholder="Search countries"
              pause="100"
              selected-object="selectedCountry"
              local-data="countries"
              search-fields="name"
              title-field="name"
              minlength="1"
              input-class="form-control form-control-small"/>

Using local data with custom search function

<angucomplete-alt id="ex2"
              placeholder="Search people"
              pause="300"
              selected-object="selectedPerson"
              local-data="people"
              local-search="localSearch"
              title-field="firstName,surname"
              description-field="twitter"
              image-field="pic"
              minlength="1"
              input-class="form-control form-control-small"
              match-class="highlight" />

Local search function takes a string and returns an array of matched items.

// Here is a naive implementation for matching first name, last name, or full name
$scope.localSearch = function(str) {
  var matches = [];
  $scope.people.forEach(function(person) {
    var fullName = person.firstName + ' ' + person.surname;
    if ((person.firstName.toLowerCase().indexOf(str.toString().toLowerCase()) >= 0) ||
        (person.surname.toLowerCase().indexOf(str.toString().toLowerCase()) >= 0) ||
        (fullName.toLowerCase().indexOf(str.toString().toLowerCase()) >= 0)) {
      matches.push(person);
    }
  });
  return matches;
};

Example

Using remote API

<angucomplete-alt id="members"
              placeholder="Search members"
              pause="400"
              selected-object="testObj"
              remote-url="http://myserver.com/api/user/find?s="
              remote-url-data-field="results"
              title-field="firstName,surname"
              description-field="email"
              image-field="profilePic"
              input-class="form-control form-control-small"/>

It expects the returned results from remote API to have a root object. In the above example, 'results' is an array of search results.

Description of attributes

Attribute Description Required Binding Example
id A unique ID for the field. example Yes @ members
placeholder Placeholder text for the search field. example No @ Search members
maxlength Maxlength attribute for the search field. example No attribute 25
pause The time to wait (in milliseconds) before searching when the user enters new characters. example No @ 400
selected-object Either an object in your scope or callback function. If you set an object, it will be passed to the directive with '=' sign but it is actually one-way-bound data. So, setting it from your scope has no effect on input string. If you set a callback, it gets called when selection is made. To get attributes of the input from which the assignment was made, use this.$parent.$index within your function. example Yes = selectedObject or objectSelectedCallback
selected-object-data A second parameter which will be passed to selected-object. Only works when using selected-object. No = row
remote-url The remote URL to hit to query for results in JSON. angucomplete will automatically append the search string on the end of this, so it must be a GET request. example No @ http://myserver.com/api/users/find?searchstr=
remote-url-data-field The name of the field in the JSON object returned back that holds the Array of objects to be used for the autocomplete list. example No @ results
title-field The name of the field in the JSON objects returned back that should be used for displaying the title in the autocomplete list. Note, if you want to combine fields together, you can comma separate them here (e.g. for a first and last name combined). If you want to access nested field, use dot to connect attributes (e.g. name.first). example Yes @ firstName,lastName
description-field The name of the field in the JSON objects returned back that should be used for displaying the description in the autocomplete list. example No @ twitterUsername
image-field The name of the field in the JSON objects returned back that should be used for displaying an image in the autocomplete list. example No @ pic
minlength The minimum length of string required before searching. example. If set to 0, it shows all items. It works both local and remote but is intended to use with local data. If used with remote API, it needs to return all items when query parameter is empty string. No @ 3
input-name Name for input field. This is required when you use field-required. No @
input-class The classes to use for styling the input box. example No @ form-control
match-class If it is assigned, matching part of title is highlighted with given class style. example No @ highlight
local-data The local data variable to use from your controller. Should be an array of objects. example No = countriesList
local-search A function that search local data. It should take a input string and an array of items as arguments and returns an array of matched items. example No & localSearch
search-fields The fields from your local data to search on (comma separate them). Each field can contain dots for accessing nested attribute. example No @ title,description
remote-url-request-formatter A function that takes a query string and returns parameter(s) for GET. It should take the query string as argument and returns a key-value object. example No = Suppose if you need to send a query keyword and a timestamp to search API, you can write a function like this in the parent scope. $scope.dataFormatFn = function(str) { return {q: str, timestamp: +new Date()}; }
remote-url-request-with-credentials A boolean that accepts parameters with credentials. No @ true or false
remote-url-response-formatter A function on the scope that will modify raw response from remote API before it is rendered in the drop-down. Useful for adding data that may not be available from the API. The specified function must return the object in the format that angucomplete understands. No = addImageUrlToObject
remote-url-error-callback A callback funciton to handle error response from $http.get No = httpErrorCallbackFn
remote-api-handler This gives a way to fully delegate handling of remote search API. This function takes user input string and timeout promise, and it needs to return a promise. For example, if your search API is based on POST, you can use this function to create your own http handler. See example below No =
clear-selected To clear out input field upon selecting an item, set this attribute to true. example No @ true
override-suggestions To override suggestions and set the value in input field to selectedObject. example No true
field-required Set field to be required. Requirement for this to work is that this directive needs to be in a form and you need to provide input-name. Default class name is "autocomplete-required". example. No = a variable holding true/false
field-required-class Set custom class name for required. No @ "match"
text-searching Custom string to show when search is in progress. Set this to 'false' prevents text to show up. No @ "Searching for items..."
text-no-results Custom string to show when there is no match. Set this to 'false' prevents text to show up. No @ "Not found"
initial-value Initial value for component. If string, the internal model is set to the string value, if an object, the title-field attribute is used to parse the correct title for the view, and the internal model is set to the object. example No = myInitialValue (object/string)
input-changed A callback function that is called when input field is changed. To get attributes of the input from which the assignment was made, use this.$parent.$index within your function. example No = inputChangedFn
auto-match Allows for auto selecting an item if the search text matches a search results attributes exactly. example No @ true
focus-in A function or expression to be called when input field gets focused. example No & focusIn()
focus-out A function or expression to be called when input field lose focus. example No & focusOut()
disable-input A model to control disable/enable of input field. example page No = disableInput
template-url Customize the markup of the autocomplete template. example page No attribute "/my-custom-template.html"
focus-first Automatically select the first match from the result list. No @ true
parse-input A function or expression to parse input string before comparing into search process. No & parseInput()
field-tabindex Setting the tabindex attribute on the input field. No @ field-tabindex="25"

Scrollbar

To show scrollbar, you need to set the following css style to angucomplete-dropdown class, and then the directive automatically picks it up.

.angucomplete-dropdown {
    ...
    overflow-y: auto;
    max-height: 200px; // your preference
    ...
}

See example #1

Clear Input

To clear all angucomplete-alt input fields, send this message

$scope.$broadcast('angucomplete-alt:clearInput');

To clear an angucomplete-alt input field, send this message with id of the directive. For example, the id of the directive is 'autocomplete-1'.

$scope.$broadcast('angucomplete-alt:clearInput', 'autocomplete-1');

Change Input

To set an angucomplete-alt input field, send this message with id of the directive and desired value. One can pass a simple string or an object as an argument, the same rules applied as for initial-value parameter. For example, the id of the directive is 'autocomplete-1'.

$scope.$broadcast('angucomplete-alt:changeInput', 'autocomplete-1', 'Hello!');

Remote API Handler

This is an example calling search API with POST. Pass this searchAPI function to the directive as remote-api-handler.

$scope.searchAPI = function(userInputString, timeoutPromise) {
  return $http.post('/yourownapi/', {q: userInputString}, {timeout: timeoutPromise});
}

When you use remote-api-handler, these attributes are ignored:

remote-url
remote-url-request-formatter
remote-url-request-with-credentials

Callback behaviour

Callbacks selected-object and input-changed are called with the following method signature:

function ($item) {

  $item.title // or description, or image - from your angucomplete attribute configuration
  $item.originalObject // the actual object which was selected
  this.$parent // the control which caused the change, contains useful things like $index for use in ng-repeat.

}

Examples

To run examples, cd into 'examples' directory and run static http server of your choice:

cd examples
python -m SimpleHTTPServer

Contributors

Here is the list of contributors. Here is how to contribute. Of course the easiest contribution is to give it a star!

angucomplete-alt's People

Contributors

alexbeletsky avatar andretw avatar annmirosh avatar antony avatar artvlasov avatar baloo2401 avatar boshen avatar davidgeary avatar elkami12 avatar federicojasson avatar ferfabricio avatar freezystem avatar ghiden avatar handiwijoyo avatar jazo avatar jbuquet avatar jermspeaks avatar jesusr avatar loren138 avatar mcnocopo avatar metalgvc avatar mmbs avatar mpkeusch avatar mrdevin avatar nhim175 avatar postama avatar spacek33z avatar stevenharman avatar thetrevdev avatar yasuhiroyoshida avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angucomplete-alt's Issues

Pressing Enter without selecting an item results in "No results found" message

I am not sure this is a bug but my use case is that this is a search input. If the user presses the Enter key without selecting an item, it would be nice if it would just submit the form and hide the dropdown. I am able to bind ng-keypress on the directive and look for the keycode (13) but that "No result found" message hangs around. Not sure, but is there a method to call to manually open/close the dropdown? Thanks for your hard work by the way.

Fix dotted notation

Probably no one is using this feature.
But it looks like dotted notation isn't working for a long time.

Angucomplete-alt Erases Nearby HTML Elements

I have an issue with HTML elements that are placed in the same div it erases all html elements.

If I have the following code:

          <div>
                 <angucomplete-alt id="members"
                    place-holder="Выбирете Поставщика"
                    pause="300"
                    selected-object="setSupplier"
                    local-data="allSuppliers"
                    title-field="name"
                    minlength="2"
                    search-fields="name,notes"
                    description-field="notes"/>
                <input class="new-todo" placeholder="Supplier Name" ng-model="group.supplierId">
                <input class="new-todo" placeholder="External Id" ng-model="group.externalId">
                <textarea class="new-todo" placeholder="Notes" ng-model="group.notes"></textarea>
                <button ng-click="addGroup(group)">Add Group</button>
            </div>

it looks like this:

screen shot 2014-09-03 at 18 06 23

But if I wrap in the div:

          <div>
                 <div>
                 <angucomplete-alt id="members"
                    place-holder="Выбирете Поставщика"
                    pause="300"
                    selected-object="setSupplier"
                    local-data="allSuppliers"
                    title-field="name"
                    minlength="2"
                    search-fields="name,notes"
                    description-field="notes"/>
                </div>
                <input class="new-todo" placeholder="Supplier Name" ng-model="group.supplierId">
                <input class="new-todo" placeholder="External Id" ng-model="group.externalId">
                <textarea class="new-todo" placeholder="Notes" ng-model="group.notes"></textarea>
                <button ng-click="addGroup(group)">Add Group</button>
            </div>

it display everything although on the different line:
screen shot 2014-09-03 at 17 59 36

PS thanks for this awesome angular library. It's pretty functional for me.

Search within objects

How would you do a search within objects?

Sample JSON response below. Trying to autocomplete on name.

{
  "bootstrap": {
    "markers": {
      "w550": {
        "name": "Kuwait City, KW",
        "lat": "29.369722",
        "lng": "47.978333"
      },
      "w551": {
        "name": "Beijing, CN",
        "lat": "39.904214",
        "lng": "116.407413"
      },
      "w1": {
        "name": "Belize City, BZ",
        "lat": "17.497713",
        "lng": "-88.186654"
      },
      "w2747": {
        "name": "Columbia, SC, US",
        "lat": "34.00071",
        "lng": "-81.034814"
      },
      "w6": {
        "name": "Moscow, RU",
        "lat": "55.755786",
        "lng": "37.617633"
      }
    }
  }
}

Predefined selectedObject

Hi, I'd like to know if it's possible to have the selectedObject predefined. For instance, when an object is loaded from a remote server. I've tried:

  • setting override-suggestions="true";
  • retaining the format of {"title":.., "description":..,"image":.., "originalObject":... } on the server side.

Feature: Prevent form submission when selecting

Thanks for the great directive. I'm using multiple autocompletes in one form, so I wanted to prevent submitting the form when you press "enter." I just added a e.preventDefault() in the else statement on line 298; however, I can see it being added as an attribute (e.g., submit-on-enter, defaulting to true). I can pull and submit if you think it's a worthwhile feature. Thanks!

Let me submit my form!

Probably because of this line, when hitting enter after choosing an element from the dropdown, the form is not submitted, even if there is a button of type submit in it. This is super frustrating for a user point of view.

Could it be possible to only prevent default if the dropdown is displayed? Thanks.

callback on no item selected

hey!
is there an option to call a function if a user typed a string which doesn't fit any option in the list?
I'm trying to build a select box with an "add new" functionality , thanks.

Add ng-disable

I think it´s really easy to do and usefull. It would be great if i could disable the input when needed.

Update input field as user moves dropdown

Just like Google does, update input field value as user moves up/down items in dropdown.
Does this provide better user experience?
One benefit is that you can edit query term from a suggestion.

Post request

Hi,
My app do post request to autocomplete, how we use method post with your plugin? could be optional method as a attr like: method: post

console.error triggered when HTTP request is cancelled

At line 261 of the source code, there is a console.error('http error'); that can be called. It is problematic for two reasons. First, some browsers do not have such method and it will crash the JS at runtime. Then, it is called when the HTTP request in cancelled (because you are editing the input value while it was searching). It feels strange to have an error in the console while all is fine.

IMO, this line should at least test that console.error actually exists and also check the status code of the failed response, if it's zero, that means the request has been cancelled and there is not need to display anything.

ng-clicked not firing

Hi,
I noticed that in most of the examples (http://ghiden.github.io/angucomplete-alt/) and also in my project, where I try to include angucomplete-alt, ng-click is not firing (dialog disappears but selectResult does not get called). It only works with the People example and I really don't understand why.

Let me edit my search

It looks like using left / right arrow keys will move the cursor between characters in the input but will also trigger a new search each time, and that bother me because the value didn't actually changed.

It is especially bothersome when you navigate with up / down on the dropdown (which will move the cursor to the begin / end of the value, which is sad by the way), and then you want to edit your value. Navigating inside it will trigger several searches. Not good IMO.

In nearly the same subject (arrow keys). It would be cool to be able to reload the same search using the down arrow key. Right now, you are force to edit the value (even if you want the same) or using left / right keys (but we just said it was probably a bug...)

placeholder vs. place-holder in docs

In the README, the first example uses "place-holder", but the table later says "placeholder". The latter works correctly, the former does not.

Explicit tabindex

When trying to set an explicit tabindex to an angucomplete-alt annotated div element, the tabindex applies to the div and not the input field. This prevents input to the input field when navigating through the form with TAB. Is there a way to set an explicit tabindex on the (generated) input field?

Behavior of Select Element

Is there a way to behave angucomplete-alt as a select element i.e. when user first clicks on the element a drop down list of most N elements appear? If it starts typing it become filtering the drop-down list.

slectedObject - Too much output

Consider this as more of a question than a bug.

I'm using angucomplete-alt to talk to my API , it works perfectly, seriously the best autocomplete for angular and I've tried them all.

Anyway my API returns JSON of cities basically looks like so:

{ cities:[ {city:'Haifa',code:1339}, {city:'Tel-Aviv', code:1338} ] }

And I can see it populate accordingly, pretty good.
However when I attach the city to something like so :
selected-object="details.client.addr.city"

And pick a city from the angucomplete-alt

The result on $scope.details.client.addr.city is :
{"city":{"title":"Haifa","description":{"code":"337","city":"Haifa"},"image":"","originalObject":{"code":"337","city":"Haifa"}}}})

My question is:

Can I minify this? it looks like the data structure is pretty much strict and I couldn't change it without breaking the source code.

Thanks for repliers!

Auto Complete upon Tabbing

Currently selecting a choice from the dropdown is either done by click on it or pressing enter. Can we also add tab (can be exposed as an alternate key attribute)

KEY_TAB = 9

Thanks!

Leaving the input field will not update the model

I'm using angucomplete-alt with override-suggestions="true", such that a user can enter values that are not in the suggestion list. Unfortunately, when a user jumps to the next input field by pressing the tabulator key or directly clicking on the form submit button, the entered value will not be taken over (see also Example 4 of the demo). Instead, the user must explicitly press the "Enter" key, which is not intuitive in my opinion.

Is there a way to change this behaviour?

Thanks for any help!

save content of input field if not selected

Hi! I really like angucomplete-alt and it was easy to integrate. However, I want to use it to suggest search terms in a search form, and there naturally are search terms that are not suggested yet. Can I somehow save the value of the input field into a scope variable? Right now this only seems to work if a user made a selection.

I tried to add an ng-model attribute to the <angucomplete-alt element, but with no result.

If this is not possible then I'll look for another plugin or see if I can extend this. Thanks for your help!

Scrollbar Bug

I found a bug in scroll bar.
In the example-1, when the example page's scroll is top, autocomplete's scroll bar works
autocomplete-scoll-work

but when the example page's scroll is not top like below image and autocomplete's scroll bar is moved, sometimes the autocomplete list is disappear.
autocomplete-scoll-not-work

How to clear data field when user deletes selected value

I have an auto complete text box set up. (using angucomplete-alt)

If the user selects a value everything works fine.

But if a user selects a value, and then deletes it, the data model retains the selected value.

I have tried ng-change and ng-blur but neither work.

I don't want to clear the field after the selection is made so how do I capture it when the user clears the selected item?

Thanks

Automatic Submission w/o enter

Currently, a user has to press the enter key in order to trigger model change or callback function.

Can an attribute to exposed where the above is triggered upon matching in the case of overwrite is false. In the case of overwrite is true, it'll just match all the time.

Ex. Choices {'dog', 'cat', 'pig'} Overwrite is false

  1. user types in d, nothing is triggered
  2. user types in do, nothing is triggered
  3. user types in dog, model change and callback is triggered

MongoDB Objects

Hello there,

First I'm gonna tell you exactly what I'm doing.

First I'm loading my data from mongo I create a json from it to load at my angular back.
mediasData.medias = medias,
mediasData.activePage = page,
mediasData.totalPages = totalPages,
mediasData.last_sync = strftime('%F %T', systemSettings.last_sync)
res.json(mediasData)
Then I define my controller and create a $scope for my medias.

var app = angular.module('app', ["angucomplete-alt"]);

app.controller('mediasCtrl', function($scope, $http){
$scope.medias = []
$scope.activePage = ''
$scope.totalPages = ''
$scope.last_sync = ''

$http.get('Mymedias').success(function(mediasData){
  $scope.medias = mediasData.medias
  $scope.activePage = mediasData.activePage
  $scope.totalPages = mediasData.totalPages
  $scope.last_sync = mediasData.last_sync

})

})

I can do a (ng-repeat) or whatever calling media in medias without a problem, but I setup angucomplete but I can't find to make it work.
Here's my front input

Any ideas what I could be doing wrong?

Appreciate it and thank you for your effort, your tool is really impressive!

on-focus

Hey,
is it possible to bind ng-focus to angucomplete-alt?

Never stop searching

Strange bug... when using a remote url, you start typing, it search, then display results. So far, so good. Then you press on "Escape" and it closes the dropdown. I would expect to stop there. But it actually trigger a new search based on the same value and will display the dropdown again...

matchClass replace

there should be strPart != null check before line 143.

if you search on remote with string not displayed in title or description there is an error.

Custom Template

Hello, nice module.

I want to use a custom template on the results dropdown, i think that maybe adding an attribute like: template="templateUrl" will be great.

This feature will be awesome to customize the way the results will look and event adding some extras feature without extra work.

How to change the selected object

Hi,

I want to change the selection name on input.
The suggestion returned is "John", but on input, I want put "".
How to maniputate this value on controller parent?

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.