Skip to content

Commit 404307b

Browse files
author
mahdis-z
committed
modifications
1 parent 21413fb commit 404307b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

_posts/plotly_js/maps/choropleth-mapbox/2019-08-16-US_states.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
sitemap: false
88
arrangement: horizontal
99
markdown_content: |
10-
This example uses [zmin and zmax](https://plot.ly/javascript/reference/#choroplethmapbox-zmin) to define the lower bound and upper bound of the color domain.
10+
This example uses [zmin and zmax](https://plot.ly/javascript/reference/#choroplethmapbox-zmin) to define the lower bound and upper bound of the color domain. If these attributes are not set, Plotly [determines the color domain](https://plot.ly/javascript/reference/#heatmap-zauto) based on the input data.
1111
---
1212

1313
var data = [{
@@ -18,6 +18,6 @@
1818

1919
var layout = {mapbox: {style: "dark", center: {lon: -110, lat: 50}, zoom: 0.8}, width: 600, height: 400, margin: {t: 0, b: 0}};
2020

21-
var config = {mapboxAccessToken: 'pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ'};
21+
var config = {mapboxAccessToken: 'add your access token'};
2222

2323
Plotly.newPlot('graph', data, layout, config);

_posts/plotly_js/maps/choropleth-mapbox/2019-08-16-basic-choropleth1.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
var layout = {mapbox: {center: {lon: -74, lat: 43}, zoom: 3.5},
2020
width: 600, height:400};
2121

22-
var config = {mapboxAccessToken: "pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ"};
22+
var config = {mapboxAccessToken: "your access token"};
2323

2424
Plotly.newPlot('graph', data, layout, config);

_posts/plotly_js/maps/choropleth-mapbox/2019-08-16-choropleth-geojson-object.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
arrangement: horizontal
99
markdown_content: |
1010

11-
The following example sets `geojson object` of type `feature` and geometries of type 'Polygone'. For more information see [geojson attribute](https://plot.ly/javascript/reference/#choroplethmapbox-geojson) in the reference page.
11+
The following example sets `geojson object` of type `feature` and geometries of type 'Polygon'. For more information see [geojson attribute](https://plot.ly/javascript/reference/#choroplethmapbox-geojson) in the reference page.
1212
As you see, scattermapbox trace is above Choropleth mapbox. To set the Choropleth mapbox above all the other traces you should set [below attribute](https://plot.ly/javascript/reference/#choroplethmapbox-below).
1313
---
1414
var data = [
@@ -24,6 +24,6 @@
2424
center: {lon: -86, lat: 33}, zoom: 5}, marker: {line: {color: "blue"}},
2525
coloraxis: {showscale: false, colorscale: "Viridis"}};
2626

27-
Plotly.setPlotConfig({mapboxAccessToken: 'pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ'});
27+
Plotly.setPlotConfig({mapboxAccessToken: 'add your access token'});
2828

2929
Plotly.newPlot('graph', data, layout);

_posts/plotly_js/maps/choropleth-mapbox/2019-08-16-choropleth_plotly_js_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
permalink: javascript/choropleth-mapbox/
55
description: How to make a D3.js-based choropleth mapbox in JavaScript. A Choropleth mapbox shades geographic regions by value.
66
layout: user-guide
7-
thumbnail: thumbnail/choropleth.jpg
7+
thumbnail: thumbnail/mapbox-choropleth.png
88
language: plotly_js
99
page_type: example_index
1010
has_thumbnail: true

0 commit comments

Comments
 (0)