woocommerce/plugins/woocommerce-admin/docs/components/analytics
Timmy Crawford a1887eb4d7 Prepping for 0.4.0 2019-01-03 12:32:00 +13:00
..
README.md Report components docs (https://github.com/woocommerce/woocommerce-admin/pull/1140) 2018-12-22 12:46:10 +01:00
report-chart.md Prepping for 0.4.0 2019-01-03 12:32:00 +13:00
report-error.md Report components docs (https://github.com/woocommerce/woocommerce-admin/pull/1140) 2018-12-22 12:46:10 +01:00
report-summary.md Prepping for 0.4.0 2019-01-03 12:32:00 +13:00
report-table.md Prepping for 0.4.0 2019-01-03 12:32:00 +13:00

README.md

Analytics Components

This folder contains components internally used by wc-admin.

How to use:

Analytics components can be imported by their relative or absolute path.

import ReportChart from 'analytics/components/report-chart';

render: function() {
  return (
    <ReportChart
      charts={ charts }
      endpoint={ endpoint }
      path={ path }
      query={ query }
      selectedChart={ selectedChart }
    />
  );
}