From e5c6c503630eb27dcc0221a80583e2789b674bd7 Mon Sep 17 00:00:00 2001 From: kjj6198 Date: Fri, 13 Nov 2020 01:25:34 +0900 Subject: [PATCH] responsive svg and chart config --- src/ByPlaceChart.svelte | 4 +-- src/MapTooltip.svelte | 55 ++++++++++++++++++++++++++++++--- src/PlaceChart.svelte | 17 +++++++--- src/RankingTable.svelte | 17 ++++++++++ src/RelationshipChart.svelte | 60 ++++++++++++++++++++++++++++++------ src/Section.svelte | 16 ++++++++++ src/SexualCaseMap.svelte | 25 +++++++++++++-- src/TaiwanMap.svelte | 3 +- src/YearSwitch.svelte | 39 ++++++++++++++++++----- src/store/chartConfig.js | 40 ++++++++++++++++++++++++ src/store/direction.js | 14 +++++++++ src/store/viewport.js | 26 ++++++++++++++++ 12 files changed, 285 insertions(+), 31 deletions(-) create mode 100644 src/store/chartConfig.js create mode 100644 src/store/direction.js create mode 100644 src/store/viewport.js diff --git a/src/ByPlaceChart.svelte b/src/ByPlaceChart.svelte index 811428a..d86d68e 100644 --- a/src/ByPlaceChart.svelte +++ b/src/ByPlaceChart.svelte @@ -1,10 +1,10 @@
- +

性侵害通報案件數 ({data['年份']}年)

{data['縣市']}