You need to be logged in to view a user's profile.
  1. Dhanya K
  2. PowerBuilder
  3. Thursday, 2 June 2022 07:08 AM UTC

Hello Team,

We have implemented charts in our application. But colors in it are constant. Is there a provision to give users a color palete, so that if the user chooses a particular color, various values in that chart changes to light and dark shades of the chosen color

Example:

There is a bar chart which shows 5 bars. At present, each bar has a built in color from PowerBuilder. But if user chooses red from the color palette, then all the 5 bars should be displayed in various shades of red.

 

Kindly let me know if this is possible with PB 2019 R2

 

Thanks a lot in advance.

 

John Fauss Accepted Answer Pending Moderation
  1. Saturday, 4 June 2022 02:37 AM UTC
  2. PowerBuilder
  3. # 1

Hi, Dhanya -

The roadmap for PB 2022 is very ambitious - I would not be surprised if some of the anticipated new features are spread out across multiple releases of the upcoming version. The graphing enhancements may not be included in the initial release.

Have you considered using Apache eCharts or Google Charts? You can utilize these via the Chromium-based web browser control. There is a demonstration app for each charting package available in CodeXchange:

   https://community.appeon.com/index.php/codeexchange/powerbuilder/291-apache-echarts

   https://community.appeon.com/index.php/codeexchange/powerbuilder/292-google-charts

I've looked at both apps and these charting packages. The example code can be adapted to support virtually any of the wide variety of chart types and with a little work I think you might be able to add the kind of functionality you're requesting.

Regards, John

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 3 June 2022 23:12 PM UTC
  2. PowerBuilder
  3. # 2

Hi,

I don't think it's possible, but you can always use the Modify() function to change any colours.

PB2022 promises enhancements for Graphs (I believe based upon Apache E-charts), so then it might be possible.

You can always do a feature request on https://www.appeon.com/standardsupport/newbug 

regards.

MiguelL

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.