Skip to content

Commit a3dabf9

Browse files
soft-boymrblueblue
authored andcommitted
Raster point size (#74)
* reduce point size range in raster chart examples * update links for example gifs in README, example index
1 parent b758acf commit a3dabf9

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Dimensional charting built to work natively with crossfilter rendered using d3.j
1010

1111
#### Tweets Dataset: Brushing on timeline and hovering on Pointmap datapoint which displays row information
1212

13-
![example2](https://cloud.githubusercontent.com/assets/2932405/25641746/acd9cdd0-2f4a-11e7-9821-99e3152075cd.gif)
13+
![example2](https://user-images.githubusercontent.com/4845281/28191946-21bb7ec0-67e8-11e7-855e-8922939d1241.gif)
1414

1515
#### Tweets Dataset: Using MapD-Draw tool on pointmap to select specific areas on a map
1616

17-
![example5](https://cloud.githubusercontent.com/assets/2932405/25641955/ab7015ac-2f4b-11e7-848a-c749fe2081bf.gif)
17+
![example5](https://user-images.githubusercontent.com/4845281/28191947-21bd2ad6-67e8-11e7-9c8d-a5ddcd0f07fc.gif)
1818

1919
# Examples
2020

example/example2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
116116
We then pass this scale into the r function within bubbleRasterChart
117117
*/
118-
var sizeScale = d3.scale.linear().domain([0,5000]).range([2,12]);
118+
var sizeScale = d3.scale.linear().domain([0,5000]).range([1,5]);
119119

120120
var pointMapChart = dc
121121
.rasterChart(parent, true)

example/example4.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ document.addEventListener("DOMContentLoaded", function init() {
101101
*
102102
* We then pass this scale into the r function within bubbleRasterChart
103103
*/
104-
var rScale = d3.scale.linear().domain([0,5000]).range([2,12]);
104+
var rScale = d3.scale.linear().domain([0,5000]).range([1,5]);
105105

106106
pointMapChart = dc.bubbleRasterChart(parent, false)
107107
.con(con)

example/example5.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
var xDim = crossFilter.dimension("lon");
8181
var yDim = crossFilter.dimension("lat");
8282
var parent = document.getElementById("chart1-example");
83-
var rScale = d3.scale.linear().domain([0,5000]).range([2,12]);
83+
var rScale = d3.scale.linear().domain([0,5000]).range([1,5]);
8484
mapLangColors(40);
8585

8686
var pointMapChart = dc.rasterChart(parent, true, null, mapboxgl)

example/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
<a href="./example2.html">
100100
Backend-rendered Point Map (Tweets Dataset)
101101
<br>
102-
<img src="https://cloud.githubusercontent.com/assets/2932405/25759330/d287763e-3186-11e7-80fc-8ef84d046aec.png">
102+
<img src="https://user-images.githubusercontent.com/4845281/28191946-21bb7ec0-67e8-11e7-855e-8922939d1241.gif">
103103
</a>
104104
</td>
105105
</tr>
@@ -117,17 +117,17 @@
117117
<a href="./example4.html">
118118
Backend-rendered Scatter Plot (Tweets Dataset)
119119
<br>
120-
<img src="https://cloud.githubusercontent.com/assets/2932405/25759388/2d8e9aee-3187-11e7-86f3-78e0e5b92b06.png">
120+
<img src="https://user-images.githubusercontent.com/4845281/28191948-21be4150-67e8-11e7-8221-35c59f51df80.gif">
121121
</a>
122122
</td>
123123
</tr>
124124
<tr>
125125
<td scope="row"><a href="./example5.html">
126126
Selection Tool With Raster Chart
127127
<br>
128-
<img src="https://cloud.githubusercontent.com/assets/2932405/25759496/9f039224-3187-11e7-8b05-d6ab3179727d.png">
128+
<img src="https://user-images.githubusercontent.com/4845281/28191947-21bd2ad6-67e8-11e7-9c8d-a5ddcd0f07fc.gif">
129129
</a></td>
130-
130+
131131
</tr>
132132
<tr>
133133
<td scope="row"><a href="./exampleMultiLayerMap.html">

0 commit comments

Comments
 (0)