funnel-charts

1.1.2 • Public • Published

FunnelChart

漏斗图组件

https://gitlab.com/xgqfrms/FunnelChart

使用文档

import React from "react";
import "./index.less";

// slot
import IconsSlot from './IconsSlot';
import TitleSlot from './TitleSlot';

// funnel-chart
// import FunnelChart from './FunnelChart';
import FunnelChart from 'funnel-charts';

const FunnelChartComponent = (props) => {
  const {
    totalRateL: total,
    rates: data,
  } = props;
  return (
    <div className="funnel-chart-component">
      <section>
        <FunnelChart
          dataSource={{
            steps: data || [],
            total: total || 0,
          }}
          iconsSlot={options => <IconsSlot options={options} />}
          titleSlot={title => <TitleSlot title={title} />}
          // units={"人"}
          units={""}
        />
      </section>
    </div>
  );
};

export default FunnelChartComponent;

Readme

Keywords

none

Package Sidebar

Install

npm i funnel-charts

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

2.51 MB

Total Files

4

Last publish

Collaborators

  • xgqfrms