Skip to content

Commit

Permalink
fix sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Holtz Yan authored and Holtz Yan committed Jul 15, 2023
1 parent 9004414 commit 6c9535e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion viz/ChoroplethMapBasic/data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const numData = [
export const numData: { code: string; value: number; name: string }[] = [
{
name: 'Antigua and Barbuda',
code: 'ATG',
Expand Down
7 changes: 5 additions & 2 deletions viz/ChoroplethMapBasic/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import ReactDOM from 'react-dom';
import { data } from './data';
import { numData, geoData } from './data';
import { Map } from './Map';

const rootElement = document.getElementById('root');
ReactDOM.render(<Map data={data} width={700} height={400} />, rootElement);
ReactDOM.render(
<Map geoData={geoData} numData={numData} width={700} height={400} />,
rootElement
);

0 comments on commit 6c9535e

Please sign in to comment.