Giter VIP home page Giter VIP logo

fee_front's Introduction

FE-Charts

基于ECharts提供生成图表的options公共方法:getOptions

项目地址

Installation

npm install local-charts --save

Upgrade

npm update local-charts

Usage

import { getOptions } from local-charts;
...
const options = getOptions(type, isCloss, data, chartType);
...
参数 说明 类型 可选值
type 图表类型 string 'line'(折线)/'pie'(饼图)
isCross 是否横屏 boolean true/false
data 布局 array 后端返回数据(折线一个,饼图一个)
chartType 名称 string orderLine(单量)、active(活跃用户)、payments(平台收支)、count(件量)、sign(签单率)、incom(总收入)、outDistribution(总支出),前五个是折线、后两个是拼图

fee_front's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.