Skip to content
Snippets Groups Projects

Download a chart as an image (CSV, PNG, JPEG)

Merged Mohammad Torkashvand requested to merge feature/COMP-247-download-charts-as-image into develop
Files
16
import React, { useContext, ReactNode } from 'react';
import { ChartContainerContext } from '../../helpers/ChartContainerProvider';
interface ChartContainerProps {
children: ReactNode;
}
const ChartContainer: React.FC<ChartContainerProps> = ({ children }) => {
const containerRef = useContext(ChartContainerContext);
return (
<div ref={containerRef}>
{children}
</div>
);
};
export default ChartContainer;
Loading