Skip to content

Commit 665691f

Browse files
committed
📝 added docs for reference
1 parent c60b8ad commit 665691f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/components/LineChartComponents/LineChart.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ export default function LineChart({
727727
]);
728728

729729
const {register} = useExportingRegistry();
730+
731+
// https://www.amcharts.com/docs/v5/reference/exporting/ docs for export settings from amcharts
730732
const exportSettings = useMemo(() => {
731733
return {
732734
filePrefix: exportedFileName,

src/components/TopBar/PopUps/ExportDialog.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export default function ExportDialog(): JSX.Element {
4141
const lineDataUrl = toDataUrl(lineImg);
4242
const mapDataUrl = toDataUrl(mapImg);
4343

44+
/**
45+
* More information how to work with pdfmake to create a pdf: https://pdfmake.github.io/docs/0.1/document-definition-object/
46+
*/
4447
const doc: TDocumentDefinitions = {
4548
pageSize: 'A4',
4649
pageOrientation: 'portrait',

0 commit comments

Comments
 (0)