GithubHelp home page GithubHelp logo

Comments (7)

speckyspooky avatar speckyspooky commented on September 8, 2024

We would need a small example report from your side with the grafik.
But without any external data source reference that we can reproduce the topic and have the same starting point like you.

Yes, I read the StackOverflow-hint and it must be checked.
The topic is that we use BATIK at different locations of the whole project not onyl at PDF size.

from birt.

hvbtup avatar hvbtup commented on September 8, 2024

Maybe you can solve this by using a relative path which must not contain upwards references ...

from birt.

msimanga avatar msimanga commented on September 8, 2024

TLDR
I have uploaded a sample report. The report works when exporting to DOCX and XLSX. This does not work for PDF. I used the relative path. Setting the relative path in the Report Designer is difficult, application seems to bomb out so I just set it in the XML.
TestChartImageSeries.zip

Some background information that leads to some feature suggestions. I generate BIRT reports purely from command line. We do our other analytics using other BI applications but BIRT has proven to be the best at creating PDFs, DOCX and XLSX. I found it simpler to create different client colour schemes by just simply copying different PNG files to one folder in a batch file then generating the reports. I tend to find that adding scripts to BIRT reports makes them hard to maintain for none technical users and even for me. A year later I am not sure where the magic is happening. This wouldn't be necessary if one could enter a dynamic value (with hex value of colour) in the option window below:

  • Perhaps bind the colour to a data set field
  • Bind to a parameter (probably the most convenient)
  • Bind to a variable
  • Or have the conditional formatting interface available here for the colour.

image

Thank you for the wonderful work you do developing BIRT. These are just suggestions.

from birt.

speckyspooky avatar speckyspooky commented on September 8, 2024

For your suggestions, have you tried to use the CSS-styles of the report which can be manipulated through a fetch based on the style name and changed to the according CI. (I use this option for my specific division-CIs).

And a question could you please add a screen where you call the image dialog because I'm not sure which option you mean/where the dialog was called from.

from birt.

speckyspooky avatar speckyspooky commented on September 8, 2024

The change of the embedded external resource is merged to the master with PR #1857.

from birt.

speckyspooky avatar speckyspooky commented on September 8, 2024

@msimanga

There is an additional option instead of the image option for the palett-color which is a good solution
you would be able to use scripting of the color. The screen below shows the original chart color "orange" which will be changed via script to "red".
The scripts are included on the chart at method "onRender()" - my (small) example is attached.
So you would be able to use a parameter to set the necessary colors (, my example is without parameters but you get the scripts for the color setting).

This is the way to use parameters for the coloring - one of your requirements.

Further infromation to have acces to external variables: #1848

Further information for chart scripting: http://birtworld.blogspot.com/2011/10/birt-chart-palette.html
(old but cool :o)

Chart, dynamic color change (script)

grafik

Chart example with scripted color

chart_image.zip

from birt.

speckyspooky avatar speckyspooky commented on September 8, 2024

I will close this ticket.
The change is available and aditional hints available too.

Don't hesitate to aks if there are some further detailed questions.

from birt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.