This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import _ from 'lodash'; | |
| import Scatter3D from './Scatter3D'; | |
| const getOptions = (type) => ({ | |
| chart: { | |
| type: 'scatter3d', | |
| options3d: { | |
| enabled: true, | |
| alpha: 15, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Highcharts from 'highcharts'; | |
| import HighchartsReact from 'highcharts-react-official'; | |
| import _ from 'lodash'; | |
| const getOptions = (type) => ({ | |
| chart: { | |
| type, | |
| width: 500, | |
| height: 300, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Highcharts from 'highcharts'; | |
| import HighchartsReact from 'highcharts-react-official'; | |
| import HighchartsExporting from 'highcharts/modules/exporting'; | |
| import HighchartsAccessibility from 'highcharts/modules/accessibility'; | |
| import HighchartsParallelCoordinates from 'highcharts/modules/parallel-coordinates'; | |
| HighchartsExporting(Highcharts); | |
| HighchartsAccessibility(Highcharts); | |
| HighchartsParallelCoordinates(Highcharts); | |
| const yAxisDefaultSetting = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Highcharts from 'highcharts'; | |
| import HighchartsReact from 'highcharts-react-official'; | |
| import HighchartsExporting from 'highcharts/modules/exporting'; | |
| import HighchartsAccessibility from 'highcharts/modules/accessibility'; | |
| import HighchartsParallelCoordinates from 'highcharts/modules/parallel-coordinates'; | |
| HighchartsExporting(Highcharts); | |
| HighchartsAccessibility(Highcharts); | |
| HighchartsParallelCoordinates(Highcharts); | |
| const data = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useRef } from 'react'; | |
| import Highcharts from 'highcharts'; | |
| import HighchartsReact from 'highcharts-react-official'; | |
| import _ from 'lodash'; | |
| import './App.css'; | |
| import HighchartsExporting from 'highcharts/modules/exporting'; | |
| import Highcharts3D from 'highcharts/highcharts-3d'; | |
| HighchartsExporting(Highcharts); | |
| Highcharts3D(Highcharts); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useRef, useState } from 'react'; | |
| import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet'; | |
| import { Icon } from 'leaflet'; | |
| import 'leaflet/dist/leaflet.css'; | |
| import markerIconPng from 'leaflet/dist/images/marker-icon.png'; | |
| import markShadowPng from 'leaflet/dist/images/marker-shadow.png'; | |
| function App() { | |
| const [popupRefReady, setPopupRefReady] = useState(false); | |
| const markerRef = useRef(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useCallback, useEffect, useRef, useState } from 'react'; | |
| import { MapContainer, TileLayer, GeoJSON } from 'react-leaflet'; | |
| import L from 'leaflet'; | |
| import 'leaflet/dist/leaflet.css'; | |
| import markerIconPng from 'leaflet/dist/images/marker-icon.png'; | |
| import markShadowPng from 'leaflet/dist/images/marker-shadow.png'; | |
| function App() { | |
| const [jsonContent, setJsonContent] = useState(); | |
| const [isMapReady, setIsMapReady] = useState(false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "FeatureCollection", | |
| "features": [ | |
| { | |
| "type": "Feature", | |
| "geometry": { | |
| "type": "Point", | |
| "coordinates": [-77.0368739, 38.907192] | |
| }, | |
| "properties": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { MapContainer, LayersControl, TileLayer, WMSTileLayer } from 'react-leaflet'; | |
| import 'leaflet/dist/leaflet.css'; | |
| function App() { | |
| return ( | |
| <MapContainer center={[38.907192, -77.036873]} zoom={8}> | |
| <LayersControl collapsed={false}> | |
| <LayersControl.BaseLayer name="Street View" checked> | |
| <TileLayer | |
| attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useEffect, useRef, useState } from 'react'; | |
| import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet'; | |
| import { Icon } from 'leaflet'; | |
| import 'leaflet/dist/leaflet.css'; | |
| import markerIconPng from 'leaflet/dist/images/marker-icon.png'; | |
| import markShadowPng from 'leaflet/dist/images/marker-shadow.png'; | |
| import collegePng from './icons8-university-64.png'; | |
| function App() { | |
| const [popupRef1Ready, setPopupRef1Ready] = useState(false); |