jobsta / reportbro-designer

Javascript plugin to visually design report layouts (for pdf and Excel) which can be created with reportbro-lib (a Python package) on the server.
https://www.reportbro.com
GNU Affero General Public License v3.0
323 stars 116 forks source link

Graphs / Charts #6

Open HamburgerJungeJr opened 5 years ago

HamburgerJungeJr commented 5 years ago

Hi,

are you planning to implement basic charts, like Pie-, Graph or Bar-chart.

As far as I have seen, there is no simple solution, like adding Chart.js for example, because there is no Python equivalent. Or is it possible to add elements to the designer withput adding them in the Python library?

alhman commented 5 years ago

Hi,

at the moment we have no plans to implement charts. But in the long term this would definitely be a nice addition. You're right that we'd need a chart library for the designer (javascript) and the lib (python). If we use different libs the preview in the designer layout will look different (don't know if this would be an issue). e.g. chart.js for the designer and matplotlib for the lib.

cristi-boboc commented 3 years ago

Hi,

I believe you can achieve this by having the backend generating the chart as an image, and then loading the image from url.

Hope it helps

alhman commented 3 years ago

you're right. Adding the chart generation to the backend should be sufficient.The designer can request a chart update for preview on demand.