Skip to content

Commit

Permalink
feat(legacy-plugin-chart-country-map): add six new maps (#1327)
Browse files Browse the repository at this point in the history
* feat(legacy-plugin-chart-country-map): add six new maps

* add svalbard

* update notebook
  • Loading branch information
villebro authored and zhaoyongjie committed Nov 26, 2021
1 parent d20e08e commit 884b8ec
Show file tree
Hide file tree
Showing 9 changed files with 815 additions and 516 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,31 @@ import brazil from 'file-loader!./countries/brazil.geojson';
import bulgaria from 'file-loader!./countries/bulgaria.geojson';
import canada from 'file-loader!./countries/canada.geojson';
import china from 'file-loader!./countries/china.geojson';
import denmark from 'file-loader!./countries/denmark.geojson';
import egypt from 'file-loader!./countries/egypt.geojson';
import estonia from 'file-loader!./countries/estonia.geojson';
import france from 'file-loader!./countries/france.geojson';
import finland from 'file-loader!./countries/finland.geojson';
import germany from 'file-loader!./countries/germany.geojson';
import iceland from 'file-loader!./countries/iceland.geojson';
import india from 'file-loader!./countries/india.geojson';
import indonesia from 'file-loader!./countries/indonesia.geojson';
import iran from 'file-loader!./countries/iran.geojson';
import italy from 'file-loader!./countries/italy.geojson';
import japan from 'file-loader!./countries/japan.geojson';
import korea from 'file-loader!./countries/korea.geojson';
import liechtenstein from 'file-loader!./countries/liechtenstein.geojson';
import norway from 'file-loader!./countries/norway.geojson';
import malaysia from 'file-loader!./countries/malaysia.geojson';
import morocco from 'file-loader!./countries/morocco.geojson';
import myanmar from 'file-loader!./countries/myanmar.geojson';
import netherlands from 'file-loader!./countries/netherlands.geojson';
import poland from 'file-loader!./countries/poland.geojson';
import portugal from 'file-loader!./countries/portugal.geojson';
import russia from 'file-loader!./countries/russia.geojson';
import singapore from 'file-loader!./countries/singapore.geojson';
import slovenia from 'file-loader!./countries/slovenia.geojson';
import sweden from 'file-loader!./countries/sweden.geojson';
import spain from 'file-loader!./countries/spain.geojson';
import switzerland from 'file-loader!./countries/switzerland.geojson';
import syria from 'file-loader!./countries/syria.geojson';
Expand All @@ -44,10 +50,13 @@ export const countries = {
bulgaria,
canada,
china,
denmark,
egypt,
estonia,
france,
finland,
germany,
iceland,
india,
indonesia,
iran,
Expand All @@ -59,11 +68,14 @@ export const countries = {
morocco,
myanmar,
netherlands,
norway,
poland,
portugal,
russia,
singapore,
slovenia,
spain,
sweden,
switzerland,
syria,
thailand,
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export default function EchartsTimeseries({

const eventHandlers: EventHandlers = {
click: props => {
const { seriesName: name } = props;
const { seriesName: name, value } = props;
const xValue = value[0].getTime?.() || value[0];
console.log(props, name, xValue);
const values = Object.values(selectedValues);
if (values.includes(name)) {
handleChange(values.filter(v => v !== name));
Expand Down

0 comments on commit 884b8ec

Please sign in to comment.