73 Commits

Author SHA1 Message Date
Jonathan Huang
fc7911a2e0 Fix Pointmap Selection Tool Example 5 (#12)
* [EXAMPLES] fix selection tool example

* [TRAVIS] fixed file path for after success
2017-05-05 11:09:34 -07:00
Marc Balaban
8eac076cef [EXAMPLES] updated example links to connect to metis 2017-05-04 15:50:13 -07:00
Jonathan Huang
a79bb576b6 Example fix (#114)
* fix examples and scripts

* fix test scripts

* update license and fix package.json docs + lint scripts

* update coverage requirements
2017-04-30 22:08:35 -07:00
mrblueblue
bb34327114 move example test folder 2017-04-24 20:28:25 -07:00
Jonathan Huang
2e073291c1 clean up examples 2017-04-24 19:59:14 -07:00
Jonathan Huang
31acad6366 [DC EXAMPLES] remove sync requests and fix charts 2017-04-24 19:58:55 -07:00
Christopher Root
e1cd9bc928 Convert mapdc backend-rendered charts to use the new lasso tool, and enable lasso capability for BE scatterplots in immerse (#2492) 2017-04-05 14:56:11 -07:00
Jonathan Huang
df8a8dae36 [DC] vega utils file + fix layer examples (#2288)
* [DC] vega utils file + fix layer examples

* remove arrow function
2017-02-17 15:28:58 -08:00
ʈᵃᵢ
ee47aea4b4 [infra] change examples to use forge (#2283) 2017-02-16 10:20:18 -08:00
Jonathan Huang
7251f1d4e3 mapdc as ES6 Modules (#2255)
* [MAPDC] refactor using es6 modules

add logging module

add more charts and mixins

add bubble overlay, heatmap, boxplot

add more charts

finish moving to new folder

beging moving overrides to new folder

replace mapdc src/

update build script

fix tests

fix mapdc import

fix mapdc import

prebuild mapdc css styles

remove console

redrawAll on rangeFilter update

remove grunt, delete dead files

update tests

minor fixes

fix raster-mixin d3 import

lint

clear cache

fix mapdc style import

fix example styles

* remove dc from scatter-mixin
2017-02-13 15:20:37 -08:00
ʈᵃᵢ
83b97fe8f0 [dc] fixes example 3 by importing mapbox-draw (#2258) 2017-02-13 14:34:21 -08:00
ʈᵃᵢ
698e6a0c7e Range chart axis (#2218)
* [dc] initialize range chart with binParams.binBounds instead of xAxisMin/Max

* fix draw-mixin tests

* revert api

* add mapbox-gl-draw to dc example 2
2017-02-06 15:48:49 -08:00
Jonathan Huang
b340a2baa0 [MAPDC] fix examples (#2187) 2017-02-01 12:05:50 -08:00
Jonathan Huang
5d07bfb938 [MAP MIXIN] init map using async init method, fixes #1713, #1687 (#1885)
* [MAP MIXIN] init map using async init method, fixes #1713, #1687

* [V2] add pointmap tests

* [POINTMAP] load proper bounds for initial render call

* bump coverage

* [POINTMAP] update bounds if initial bounds is not equal to rendered map bounds

* fix map move

* remove console

* fix connection reducer test
2016-12-01 14:54:38 -08:00
Jonathan Huang
a8d5ea15fe Example 5 - Polygon Lasso (#1816)
* [DC] add example 5

[DC] update converGeoJSONtoSQL function

[DC] update dependencies to include sprintf

[DC] example 5, no hover on poly select

[DC] disable hover and clicks on polygon draw mode for lasso tool

[DC] wrap coord filter in parens

[DC] test map draw mixin

[DC] use unlikely statement optimization for polygon queries

* circle experiment

* [DC] add circle control to example 5

* update mapbox-gl-draw build process

* [DC] update circle query

* [DC] add tests for circle geojson to sql

* [DC] update circle lasso formula

* [DC] use distance_in_meters for circle query

* fix tests

* update example
2016-11-17 17:50:08 -08:00
Christopher Root
d3f30579e9 Adding new RenderChart dc widget to handle all 2D backend rendering with multiple layers. (#1844)
* Adding new rasterChart mapdc widget with multi-layer BE-rendering support.
The raster chart is a wrapper covering all 2D backend-rendering widgets.
This currently includes pointmaps and scatterplots. Changes include:

    1) new point and poly layer mixins that can be added to rasterChart
    2) Adds hit-testing support for all layers, including polys. This includes animations and popups. Requires some new css.
    3) fixed bug to ensure pixel radius set to getResultRowForPixel is an int
    4) several small changes to crossfilter:
        a) each crossfilter object is given a unique id
        b) added a getProjectOn() function to groups in order to retrieve the projections in a join/group-by query.
        c) added flags to extract the sql from certain dimension/group functions rather than run the sql immediately.
    5) Change dc-group-all-mixin to cache the last count by crossfilter id.

* adding multi-layer backend rendering examples for maps and scatterplots
2016-11-17 14:49:46 -08:00
Christopher Root
291a4eb4f3 Merge pull request #1597 from map-d/chris/backend-rendered-scatterplot
chris/backend-rendered-scatterplot
2016-10-03 11:42:37 -07:00
Christopher Root
a12f728c06 Adding backend-rendered scatterplot dc mixins and example 2016-10-03 09:43:08 -07:00
Jonathan Huang
ac82a9c44f [DC] use cdn jquery for examples 2016-09-19 17:30:17 -07:00
Jonathan Huang
2e8b74fa1f [DC] add count chart to exmaple 1 again 2016-09-07 11:00:16 -07:00
Jonathan Huang
2e9e98e730 [DC] get count chart size before redrawing charts, fixes #1464, fixes #1396
[DC] add groupAll mixin to dc

[DC] groupAll as a service

disable broken test

[DC] use overrides src files instead of build

[DC] abstract render stack methods

[DC] add dataCount group to dc groupAll
2016-09-07 07:29:56 -07:00
Jonathan Huang
5ae61b5c0f [V2] e2e tests for chart type creation and global filters
[V2] add tags to e2e tests

[DC] fix examples, make async

[V2] more e2e tests for pue, row, table

[V2] e2e test for global filter

[V2] finish global filter tests e2e

[V2] tweak global filter e2e test

[V2] fix filter e2e test due to screen size

[V2] fix multi-comp lint error
2016-08-25 13:53:59 -07:00
Jonathan Huang
4deddb715f [MADPCON] async connect, fixes #975 2016-08-16 09:25:19 -07:00
mLuby
612b881ffa [bug dc] make dc example 3 async 2016-07-22 16:35:29 -07:00
mLuby
6f0b9fabf1 use conv_4326_900913 lon/lat for example 2 2016-07-21 14:30:14 -07:00
Jonathan Huang
25ae22c67c [DC EXAMPLES] use crossfilter promise constructor 2016-07-09 11:32:50 -07:00
Jonathan Huang
e765256854 [REFACTOR] fix async behavior and code in madpcon, mapdc, crossfilter, and v2
[MAPDC TABLE] fix async behavior

[MAPDCON/DC] fix async sort and con.render

[MAPDC] fix example 3 poly-raster dataAsync callback

[MAPDC] fix example 3, use callback instead of callbacks array, fixes #949, fixes #920

[MAPDC] expire data cache when doing redraw / render all

[CAP-MIXIN] expire data cache on cap update

[SCATTER] remove color chart from measure update

[FIX] minor fixes for v2, mapdcon, and crossfilter

[CROSSFILTER] remove get result set

fixes #957, fixes #954, fixes #939, fixes #928, fixes #926, fixes #922
2016-07-03 18:13:29 -07:00
mLuby
e452fdd02e add time chart to dc poly example 3 2016-06-23 16:06:59 -04:00
Jonathan Huang
96af7574b4 [DC EXAMPLE] fix 1 and 2 2016-06-17 17:42:37 -07:00
Jonathan Huang
b42b1cb6ea [CROSSFILTER] bundle for examples 2016-06-17 17:35:35 -07:00
mLuby
80fa733e32 add dynamic border widths for polys 2016-06-15 18:19:21 -07:00
mLuby
e3cdb8349d re-add shift-drag box to dc example 2 and 3 2016-06-15 16:27:51 -07:00
mLuby
4e7d7801ae polys can have borders 2016-06-15 16:27:51 -07:00
mLuby
e8e0db4e7c use lime2blu for poly color ramp 2016-06-15 16:27:51 -07:00
mLuby
c3b35630a9 add example3: polymap 2016-06-14 17:53:51 -07:00
Du Hoang
ceb986ff3a row chart remembers scroll pos 2016-04-29 10:51:07 -07:00
Marc Balaban
52dfe701ad [CONST] removal of const in favor of var for ES5 2016-04-20 13:24:08 -04:00
mLuby
aba35c89da add .on and .off to dc raster chart 2016-04-18 18:28:39 -07:00
Marc Balaban
429ea40195 Merge pull request #378 from map-d/unaliasReservedSQLWords
Unalias reserved sql words
2016-04-12 18:04:05 -07:00
Danny Delott
7ee71c6b56 Update example asset paths, move build process
- Run `npm build:example` from mapdc's package.json
2016-04-12 12:45:36 -07:00
mLuby
e4cec618cd fix min->minimum max->maximum for example1 2016-04-12 10:19:22 -07:00
mLuby
f5b3c29665 fix min->minimum max->maximum for example2 2016-04-12 10:19:22 -07:00
mLuby
12339f2c2a remove @mapd npm dependencies 2016-04-11 15:48:38 -07:00
mLuby
64f794b101 fix paths for example2 2016-04-11 15:47:35 -07:00
mLuby
fbd8f034e6 fix paths for example1 2016-04-11 15:47:21 -07:00
Danny Delott
97c046387b Move mapdc into libraries/mapdc 2016-04-06 22:20:57 -07:00
Danny Delott
a59aa3ec38 Update build for project and example 2016-03-17 12:03:01 -07:00
Marc Balaban
f8cdbd6e9a [example2] updated example2 to include:
- Filter Bar
- Variable radius-size for dots
- Custom mapBox overlay
2016-03-14 16:44:24 -07:00
Marc Balaban
08f4a3e8a0 changed table name 2016-03-08 18:07:09 -08:00
Marc Balaban
082885f959 [BUGS] sending correct dimensions into vega spec now. 2016-03-08 18:07:09 -08:00