import React, { Component } from "react"; import { Table, Button, Space, Radio } from "antd"; import { SearchOutlined } from "@ant-design/icons"; import GroupSelect from "./GroupSelect"; import DatePickerCharts from "./DatePickerCharts"; import { stores_Context } from "../config"; import { observer } from "mobx-react"; import * as comm from "../utils/commons"; import { Line } from "@ant-design/charts"; import * as config from "../config"; class ExchangeRate extends Component { static contextType = stores_Context; constructor(props) { super(props); } render() { const { dashboard_store, date_picker_store } = this.context; const { exchangeRate_data } = dashboard_store; const line_data_source = comm.empty(exchangeRate_data.data) ? [] : exchangeRate_data.data.CurrencyData1; const line_config = { data: line_data_source, padding: "auto", xField: "er_date", yField: "er_htrate", seriesField: "er_currency", xAxis: { type: "timeCat", }, point: { size: 4, shape: "cicle", }, label: {}, //显示标签 tooltip: { // customContent: (title, items) => { // const data = items[0]?.data || {}; // return `