Metadata-Version: 2.1
Name: canvas_data_map
Version: 3.9.0
Summary: A Canvas component for visualizing data on a map
Home-page: https://github.com/satishlokkoju/deepview
Author: Satish Lokkoju
Author-email: satish.lokkoju@gmail.com
License: Apache 2.0
Keywords: Jupyter,Widgets,IPython
Platform: Linux
Platform: Mac OS X
Platform: Windows
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Framework :: Jupyter
Classifier: Framework :: Jupyter :: JupyterLab
Classifier: Framework :: Jupyter :: JupyterLab :: 3
Classifier: Framework :: Jupyter :: JupyterLab :: 4
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
Requires-Python: >3.9
Description-Content-Type: text/markdown
Requires-Dist: ipywidgets>=7.0.0
Requires-Dist: pandas
Requires-Dist: pyarrow
Requires-Dist: canvas_ux>=3.9.0
Provides-Extra: examples
Provides-Extra: docs
Requires-Dist: jupyter_sphinx; extra == "docs"
Requires-Dist: nbsphinx; extra == "docs"
Requires-Dist: nbsphinx-link; extra == "docs"
Requires-Dist: pytest_check_links; extra == "docs"
Requires-Dist: pypandoc; extra == "docs"
Requires-Dist: recommonmark; extra == "docs"
Requires-Dist: sphinx>=1.5; extra == "docs"
Requires-Dist: sphinx_book_theme; extra == "docs"

# CanvasDataMap

A rendered map where landmarks are colored by another variable.
To configure the map, the spec of this component is defined as follows:

```
@dataclass
class DataMapSpec(WidgetSpec):
    projection: str
    id_map: dict
    feature: str
    id_column: str
    map_url: str
```

The projection is a `vega-projection`, the `id_map` maps names to multiple `id` in a TopoJSON, the `feature` defines what column to color by, the `id_column` defines where names are to be found, and the `map_url` provides a link to the appropriate TopoJSON.

## Installation

```bash
pip install canvas_data_map
```

## Usage

To learn how to use Canvas, see the [documentation](https://satishlokkoju.github.io/deepview/).
