Questions tagged [plotly]

Plotly is an open-source data visualization library available in JavaScript, Python, R, and other languages. Any question around the Plotly libraries should contain a geospatial aspect and should be accompanied by a tag corresponding to the language of implementation. Like `Plotly` + `Python`.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

3D terrain in Mapbox using Python

I am connecting my Dash output to a custom-styled mapbox style. In my custom mapbox style, I have enabled 3D terrain which gives super cool insights and it allows you to tilt the map so that you can ...
user avatar
  • 31
0 votes
0 answers
77 views

Draw polygon interactively in Python Dash and get zonal histogram/statistics

The problem I would like to be able to interactively draw a polygon on a choropleth map, where I can draw as many vertices as needed. After drawing the polygon, I would like to get back the zonal ...
user avatar
  • 45
0 votes
0 answers
23 views

Plotly Dash - TypeError: Object of type Polygon is not JSON serializable

I am attempting to plot choropleth map using dash and mapbox. At runtime, I am getting an error "TypeError: Object of type Polygon is not JSON serializable". sample data and code: import ...
user avatar
  • 345
1 vote
0 answers
19 views

Dataplotly with a temporal integration (QGIS)?

I want to perform statistics on a dataset in time frames or specific dates. I've been trying to figure out how to make the DataPlotly plots time dependent (using the QGIS Temporal controller). I tried ...
user avatar
0 votes
0 answers
570 views

Problem plotting geometries in Choropleth map using plotly

I am trying to plot census level data and geometries to plotly mapbox. While I am able to plot the base map, the colored polygons used to represent spatial data are missing. import pandas as pd ...
user avatar
  • 345
2 votes
2 answers
186 views

Interactive plotting of spatial data and attributes in QGIS

Let's say I have 100 points each with unique (x, y) coordinates on a map. Each of these points has a measurement "t": Time and "j": Response data. "t" and "j" ...
user avatar
  • 23
1 vote
0 answers
91 views

dcc.Graph don't show Figure Factory object

I'm creating a dashboard but I have problems with one Figure Factory object not displaying on the space designated by the dcc.Graph object. Im building one figure like this: But the figure that gets ...
user avatar
  • 21
0 votes
0 answers
180 views

How to create a US map in R with separation between states, when using albersusa & plotly?

Does anyone have know how to access the longitude and latitude in albersusa? Currently, I'm working with a choropleth U.S. map in R using albersusa and the plot_geo() function from the plotly package (...
user avatar
0 votes
0 answers
579 views

Displaying grid (TIFF) data on Plotly Dash mapbox with Holoviews and Datashader

Full Colab Notebook: https://colab.research.google.com/drive/1_Rr71QbjlEjBmTW_r0hOoBLFVoxaMfBh?usp=sharing Summary: I'd like to display a TIFF image in a Mapbox layer in Plotly Dash, with tooltip ...
user avatar
1 vote
0 answers
128 views

How do I load a CBG GeoJSON into Python for Census Block Group level maps in Plotly?

I made county level maps a while ago and I'm trying to modify it to CBG level. Am I limited to state and county? with open('cbg.geojson') as response: cbgfile = json.load(response) data = pd....
user avatar
3 votes
1 answer
884 views

Re-ordering bar chart from Data Plotly in QGIS 3.14.16

I have successfully created a bar chart using Data Plotly within QGIS 3.14.16. The x axis consists of 17 place names (NAME) and the Y axis shows the value (VALUE IN £P) of one particular lease at each ...
user avatar
1 vote
1 answer
215 views

Unable to load dataplotly in QGIS 3.12

The DataPlotly plugin is not loading correctly on flatpak QGIS 3.12 for linux mint 19.3. I am running python 3.6.9 but the plugin seems to be seeking another version. Can anyone point me in the ...
user avatar
1 vote
0 answers
604 views

Python plotly choropleth does not work with GeoJSONs

I am trying to use plotly choropleth to draw the map, lets say for a random variable of num for each of the feature regions of the map in Italy. However, it does not work. below is the code that I use:...
user avatar
6 votes
2 answers
3k views

Create a 3D topographic map with locations marked on the map using R

I am currently trying to create an interactive 3D surface plot using plotly in R. My dataset includes a matrix of Latitude and Longitude and I have a DEM for the region I would like to make this ...
user avatar
  • 1,292