import React from "react";
import { Line } from "react-chartjs-2";
import { Chart as ChartJs } from "chart.js/auto";
import { PropTypes } from "prop-types";
import { defaults } from "chart.js";

console.log(ChartJs);

defaults.font.family = "iranyekan";

const ChartLinear = ({ chartData }) => {
  return <Line data={chartData} />;
};

export default ChartLinear;

ChartLinear.propTypes = {
  chartData: PropTypes.any,
};
