<commit_before>import React from 'react'
import echarts from 'echarts'
import _ from 'lodash'
import fetch from 'isomorphic-fetch'
import moment from 'moment'

import styles from './AbsoluteTrend.css'
import Loading from './Loading'

import { autobind } from 'react-decoration'
import { checkStatus, serverAddress } from '../util'

const rawDateFormat = 'YYYY-MM-DD'
const dateFormat = 'YYYY-MM'

const getOption = ({topic, trend}) => ({
  title: {
    text: '相对趋势'
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'line',
      lineStyle: {
        color: 'rgba(0,0,0,0.2)',
        width: 1,
        type: 'solid'
      }
    }
  },

  legend: {
    data: topic.map((words, index) => `主题${index + 1}`)
  },

  singleAxis: {
    top: 50,
    bottom: 50,
    axisTick: {},
    axisLabel: {},
    type: 'time',
    axisPointer: {
      animation: true,
      label: {
        show: true
      }
    },<commit_msg>update ui<commit_after>import React from 'react'
import echarts from 'echarts'
import _ from 'lodash'
import fetch from 'isomorphic-fetch'
import moment from 'moment'

import styles from './AbsoluteTrend.css'
import Loading from './Loading'

import { autobind } from 'react-decoration'
import { checkStatus, serverAddress } from '../util'

const rawDateFormat = 'YYYY-MM-DD'
const dateFormat = 'YYYY-MM'

const getOption = ({topic, trend}) => ({
  title: {
    text: '相对趋势',
    left: 100
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'line',
      lineStyle: {
        color: 'rgba(0,0,0,0.2)',
        width: 1,
        type: 'solid'
      }
    }
  },

  legend: {
    data: topic.map((words, index) => `主题${index + 1}`)
  },

  singleAxis: {
    top: 50,
    bottom: 50,
    axisTick: {},
    axisLabel: {},
    type: 'time',
    axisPointer: {
      animation: true,
      label: {
        show: true
      }
    },
{'fraction_non_alphanumeric': 0.1523708044752264, 'fraction_numerical': 0.013319126265316995, 'mean_word_length': 2.530075187969925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2133333', 'n_tokens_mistral': 674, 'n_tokens_neox': 646, 'n_words': 169}