RevealBi / Reveal.Sdk

Issue tracker - Reveal SDK https://www.revealbi.io/
https://www.revealbi.io/
3 stars 0 forks source link

Custom Visualization not displaying in PDF export. #143

Open ct369uk opened 9 months ago

ct369uk commented 9 months ago

SDK Version

1.6.0

Client Framework

HTML/JavaScript

Server Platform

None

Operating System

Windows

Description

When using a Google Chart as a custom visualization within a dashboard, performing an Export to PDF does not output the chart contents - the page for the chart is blank. The Google Chart used is a Sankey diagram.

gkaveckis commented 9 months ago

Hi

Thanks for reporting this issue, it is internally tracked by AB#29228

Thanks!

azure-boards[bot] commented 9 months ago

✅ Successfully linked to Azure Boards work item(s):

ct369uk commented 9 months ago

Further to my above issue, to replicate take the following custom visualization:

<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="/js/reveal.bridge.js"></script>
</head>
<body>
    <h1 id="id-title">Before Custom Data</h1>
    <script type="text/javascript">
        window.revealBridgeListener = {
            dataReady: (data) => {
                $("#id-title").text("After Custom Data!");
            }
        };

        window.revealBridge.notifyExtensionIsReady();
    </script>
</body>
</html>

If I create a dashboard with the above as a custom visualization, then when viewing the dashboard, the <h1> tag will display "After Custom Data!", because the dataReady function is called from the reveal Bridge. However, when using the Export to PDF option, the dataReady function isn't called (I'm assuming that the Export doesn't allow for custom visualizations?).

gkaveckis commented 9 months ago

Hi @ct369uk , We'll include this extra information in our internal bug. Thank you for sharing it.

brianlagunas commented 8 months ago

@ct369uk I just wanted to clarify a point on this issue. You are correct, export does not support custom visualizations. This is something that we have been trying to figure out how to make work for a long time now.

ct369uk commented 8 months ago

@brianlagunas - Thanks for the clarification. Is the source code for the export feature available in Github to view?

brianlagunas commented 8 months ago

No, the Reveal Source Code is not available publicly.

ct369uk commented 8 months ago

@brianlagunas I didn't think so :slightly_smiling_face: This is a bit of a problem for us. I have one client who is crying out for a PDF export feature, and I thought we had found it in Reveal. Hopefully this gets fixed soon. Thanks again :slightly_smiling_face:

brianlagunas commented 8 months ago

We'll try our best, but I did want to set expectations for how complex this is to solve. I'll update this issue when there is an update. Thanks for your patience and understanding.

ct369uk commented 8 months ago

@brianlagunas - Hi Brian. Thanks, and I appreciate that the issue will take time.

I've just discovered that the built-in Pie Chart and Donut Charts do not appear in the PDF export dialog, not do they appear in the generated PDF. I don't know if I should create this as a separate thread, although it's related to exporting to PDF.

brianlagunas commented 8 months ago

@ct369uk We already know about this one. We caught it internally and are tracking it with AB#28648

azure-boards[bot] commented 8 months ago

✅ Successfully linked to Azure Boards work item(s):