diff --git a/src/public/assets/data-1491837999815-H1_44Qtal.jpg b/src/public/assets/data-1491837999815-H1_44Qtal.jpg
new file mode 100644
index 0000000..3149998
Binary files /dev/null and b/src/public/assets/data-1491837999815-H1_44Qtal.jpg differ
diff --git a/src/public/assets/data-1493804606544-r1PBU7D1W.jpg b/src/public/assets/data-1493804606544-r1PBU7D1W.jpg
new file mode 100644
index 0000000..230daf2
Binary files /dev/null and b/src/public/assets/data-1493804606544-r1PBU7D1W.jpg differ
diff --git a/src/public/assets/data-1493804610896-SJoBIXPkW.jpg b/src/public/assets/data-1493804610896-SJoBIXPkW.jpg
new file mode 100644
index 0000000..728d5c4
Binary files /dev/null and b/src/public/assets/data-1493804610896-SJoBIXPkW.jpg differ
diff --git a/src/routes/chart/ECharts/MoonComponent.js b/src/routes/chart/ECharts/MoonComponent.js
index 36361cb..d175458 100644
--- a/src/routes/chart/ECharts/MoonComponent.js
+++ b/src/routes/chart/ECharts/MoonComponent.js
@@ -4,13 +4,13 @@ import 'echarts-gl'
const option = {
globe: {
- baseTexture: '/asset/data-1493804606544-r1PBU7D1W.jpg',
- heightTexture: '/asset/data-1493804610896-SJoBIXPkW.jpg',
+ baseTexture: '/assets/data-1493804606544-r1PBU7D1W.jpg',
+ heightTexture: '/assets/data-1493804610896-SJoBIXPkW.jpg',
displacementScale: 0.05,
displacementQuality: 'medium',
- environment: '/asset/data-1491837999815-H1_44Qtal.jpg',
+ environment: '/assets/data-1491837999815-H1_44Qtal.jpg',
shading: 'realistic',
realisticMaterial: {
diff --git a/src/routes/chart/areaChart/index.js b/src/routes/chart/areaChart/index.js
deleted file mode 100644
index 06720c6..0000000
--- a/src/routes/chart/areaChart/index.js
+++ /dev/null
@@ -1,293 +0,0 @@
-import React from 'react'
-import * as d3 from 'd3-shape'
-import { Row, Col, Card, Button } from 'antd'
-import {
- AreaChart,
- Area,
- XAxis,
- YAxis,
- CartesianGrid,
- Tooltip,
-} from 'recharts'
-import Container from '../Container'
-
-const data = [
- {
- name: 'Page A',
- uv: 4000,
- pv: 2400,
- amt: 2400,
- }, {
- name: 'Page B',
- uv: 3000,
- pv: 1398,
- amt: 2210,
- }, {
- name: 'Page C',
- uv: 2000,
- pv: 9800,
- amt: 2290,
- }, {
- name: 'Page D',
- uv: 2780,
- pv: 3908,
- amt: 2000,
- }, {
- name: 'Page E',
- uv: 1890,
- pv: 4800,
- amt: 2181,
- }, {
- name: 'Page F',
- uv: 2390,
- pv: 3800,
- amt: 2500,
- }, {
- name: 'Page G',
- uv: 3490,
- pv: 4300,
- amt: 2100,
- },
-]
-
-const mixData = [
- {
- name: 'Page A',
- uv: 4000,
- pv: 2400,
- amt: 2400,
- }, {
- name: 'Page B',
- uv: 3000,
- pv: 1398,
- amt: 2210,
- }, {
- name: 'Page C',
- uv: 2000,
- pv: 9800,
- amt: 2290,
- }, {
- name: 'Page D',
- uv: 2780,
- pv: 3908,
- amt: 2000,
- }, {
- name: 'Page E',
- uv: 1890,
- pv: 4800,
- amt: 2181,
- }, {
- name: 'Page F',
- uv: 2390,
- pv: 3800,
- amt: 2500,
- }, {
- name: 'Page G',
- uv: 3490,
- pv: 4300,
- amt: 2100,
- },
-]
-
-const percentData = [
- {
- month: '2015.01',
- a: 4000,
- b: 2400,
- c: 2400,
- }, {
- month: '2015.02',
- a: 3000,
- b: 1398,
- c: 2210,
- }, {
- month: '2015.03',
- a: 2000,
- b: 9800,
- c: 2290,
- }, {
- month: '2015.04',
- a: 2780,
- b: 3908,
- c: 2000,
- }, {
- month: '2015.05',
- a: 1890,
- b: 4800,
- c: 2181,
- }, {
- month: '2015.06',
- a: 2390,
- b: 3800,
- c: 2500,
- }, {
- month: '2015.07',
- a: 3490,
- b: 4300,
- c: 2100,
- },
-]
-
-const colProps = {
- lg: 12,
- md: 24,
-}
-
-const SimpleAreaChart = () => (
-
-
-
-
-
-
-
-
-
-)
-
-const StackedAreaChart = () => (
-
-
-
-
-
-
-
-
-
-
-
-)
-
-// StackedAreaChart
-
-const toPercent = (decimal, fixed = 0) => {
- return `${(decimal * 100).toFixed(fixed)}%`
-}
-
-const getPercent = (value, total) => {
- const ratio = total > 0
- ? value / total
- : 0
-
- return toPercent(ratio, 2)
-}
-
-const renderTooltipContent = (o) => {
- const { payload, label } = o
- const total = payload.reduce((result, entry) => (result + entry.value), 0)
-
- return (
-
-
{`${label} (Total: ${total})`}
-
- {payload.map((entry, index) => (
- -
- {`${entry.name}: ${entry.value}(${getPercent(entry.value, total)})`}
-
- ))}
-
-
- )
-}
-
-const PercentAreaChart = () => (
-
-
-
-
-
-
-
-
-
-
-
-)
-
-// CardinalAreaChart
-const cardinal = d3.curveCardinal.tension(0.2)
-const CardinalAreaChart = () => (
-
-
-
-
-
-
-
-
-
-
-)
-
-const EditorPage = () => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-)
-
-export default EditorPage
diff --git a/src/routes/chart/barChart/index.js b/src/routes/chart/barChart/index.js
deleted file mode 100644
index 255241d..0000000
--- a/src/routes/chart/barChart/index.js
+++ /dev/null
@@ -1,237 +0,0 @@
-import React from 'react'
-import PropTypes from 'prop-types'
-import { Row, Col, Card, Button } from 'antd'
-import {
- BarChart,
- Bar,
- XAxis,
- YAxis,
- CartesianGrid,
- Tooltip,
- Legend,
-} from 'recharts'
-import Container from '../Container'
-
-const data = [
- {
- name: 'Page A',
- uv: 4000,
- pv: 2400,
- amt: 2400,
- }, {
- name: 'Page B',
- uv: 3000,
- pv: 1398,
- amt: 2210,
- }, {
- name: 'Page C',
- uv: 2000,
- pv: 9800,
- amt: 2290,
- }, {
- name: 'Page D',
- uv: 2780,
- pv: 3908,
- amt: 2000,
- }, {
- name: 'Page E',
- uv: 1890,
- pv: 4800,
- amt: 2181,
- }, {
- name: 'Page F',
- uv: 2390,
- pv: 3800,
- amt: 2500,
- }, {
- name: 'Page G',
- uv: 3490,
- pv: 4300,
- amt: 2100,
- },
-]
-
-const mixData = [
- {
- name: 'Page A',
- uv: 4000,
- female: 2400,
- male: 2400,
- }, {
- name: 'Page B',
- uv: 3000,
- female: 1398,
- male: 2210,
- }, {
- name: 'Page C',
- uv: 2000,
- female: 9800,
- male: 2290,
- }, {
- name: 'Page D',
- uv: 2780,
- female: 3908,
- male: 2000,
- }, {
- name: 'Page E',
- uv: 1890,
- female: 4800,
- male: 2181,
- }, {
- name: 'Page F',
- uv: 2390,
- female: 3800,
- male: 2500,
- }, {
- name: 'Page G',
- uv: 3490,
- female: 4300,
- male: 2100,
- },
-]
-const colProps = {
- lg: 12,
- md: 24,
-}
-
-const SimpleBarChart = () => (
-
-
-
-
-
-
-
-
-
-
-
-)
-
-const StackedBarChart = () => (
-
-
-
-
-
-
-
-
-
-
-
-)
-
-const MixBarChart = () => (
-
-
-
-
-
-
-
-
-
-
-
-
-)
-
-// CustomShapeBarChart
-const getPath = (x, y, width, height) => {
- return `M${x},${y + height}
- C${x + (width / 3)},${y + height} ${x + (width / 2)},${y + (height / 3)} ${x + (width / 2)}, ${y}
- C${x + (width / 2)},${y + (height / 3)} ${x + (2 * (width / 3))},${y + height} ${x + width}, ${y + height}
- Z`
-}
-
-const TriangleBar = (props) => {
- const { fill, x, y, width, height } = props
- return
-}
-
-TriangleBar.propTypes = {
- fill: PropTypes.string,
- x: PropTypes.number,
- y: PropTypes.number,
- width: PropTypes.number,
- height: PropTypes.number,
-}
-
-const CustomShapeBarChart = () => (
-
-
-
-
-
- } label />
-
-
-)
-
-const EditorPage = () => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-)
-
-export default EditorPage
diff --git a/src/routes/chart/lineChart/index.js b/src/routes/chart/lineChart/index.js
deleted file mode 100644
index 2c98d13..0000000
--- a/src/routes/chart/lineChart/index.js
+++ /dev/null
@@ -1,216 +0,0 @@
-import React from 'react'
-import PropTypes from 'prop-types'
-import { Row, Col, Card, Button } from 'antd'
-import {
- LineChart,
- Line,
- XAxis,
- YAxis,
- CartesianGrid,
- Tooltip,
- Legend,
-} from 'recharts'
-import Container from '../Container'
-
-const data = [
- {
- name: 'Page A',
- uv: 4000,
- pv: 2400,
- amt: 2400,
- }, {
- name: 'Page B',
- uv: 3000,
- pv: 1398,
- amt: 2210,
- }, {
- name: 'Page C',
- uv: 2000,
- pv: 9800,
- amt: 2290,
- }, {
- name: 'Page D',
- uv: 2780,
- pv: 3908,
- amt: 2000,
- }, {
- name: 'Page E',
- uv: 1890,
- pv: 4800,
- amt: 2181,
- }, {
- name: 'Page F',
- uv: 2390,
- pv: 3800,
- amt: 2500,
- }, {
- name: 'Page G',
- uv: 3490,
- pv: 4300,
- amt: 2100,
- },
-]
-
-const colProps = {
- lg: 12,
- md: 24,
-}
-
-const SimpleLineChart = () => (
-
-
-
-
-
-
-
-
-
-
-
-)
-
-const VerticalLineChart = () => (
-
-
-
-
-
-
-
-
-
-
-
-)
-
-const DashedLineChart = () => (
-
-
-
-
-
-
-
-
-
-
-
-)
-
-// CustomizedDotLineChart
-const CustomizedDot = ({ cx, cy, payload }) => {
- if (payload.pv > 2500) {
- return (
-
- )
- }
-
- return (
-
- )
-}
-
-CustomizedDot.propTypes = {
- cx: PropTypes.number,
- cy: PropTypes.number,
- payload: PropTypes.object,
-}
-
-const CustomizedDotLineChart = () => (
-
-
-
-
-
-
-
- } />
-
-
-
-)
-
-const EditorPage = () => (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-)
-
-export default EditorPage