Skip to main content

[archive] Creating cake or bar graphs

  • August 20, 2009
  • 8 replies
  • 0 views

[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards

8 replies

[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards
You can have COBOL use Excel and excel provides all sorts of graphs

[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards
You can have COBOL use Excel and excel provides all sorts of graphs

[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards
Or you can use the MS Chart ActiveX component, here is a code sample:

       IDENTIFICATION               DIVISION.
       PROGRAM-ID.                  Chart1.
       AUTHOR.                      Cheesle.
       REMARKS.
       ENVIRONMENT                  DIVISION.
       CONFIGURATION                SECTION.
       SPECIAL-NAMES.
    COPY "MSCHART.DEF".
                .
       WORKING-STORAGE              SECTION.
       77  CNTL-FONT                USAGE HANDLE OF FONT SMALL-FONT.
       SCREEN                       SECTION.
       01 CHART-FORM.
           03 CheeseChart           MSCHART
              COL                   10
              LINE                  5
              LINES                 30
              SIZE                  40
              Visible               0.
       PROCEDURE DIVISION.
       ACU-MAIN-LOGIC.
           DISPLAY STANDARD         GRAPHICAL WINDOW
                   LINES            30
                   SIZE             50
                   BACKGROUND-LOW
                   CONTROL FONT     CNTL-FONT
                   TITLE            "Most popular water".
           DISPLAY CHART-FORM.
           MODIFY  CheeseChart
                   DataGrid::RowLabelCount = 1
                   DataGrid::ColumnCount = 3
                   DataGrid::RowCount = 1
                   ChartType        = VtChChartType2dBar.
           MODIFY  CheeseChart
                   Row              = 1
                   @Column          = 1
                   @Data            = 170.
           MODIFY  CheeseChart
                   Row              = 1
                   @Column          = 2
                   @Data            = 150.
           MODIFY  CheeseChart
                   Row              = 1
                   @Column          = 3
                   @Data            = 75.
           MODIFY  CheeseChart
                   DataGrid::ColumnLabel(1, 1, "Ice water")
                   DataGrid::ColumnLabel(2, 1, "Water with ice")
                   DataGrid::ColumnLabel(3, 1, "Water with gas")
                   DataGrid::RowLabel(1, 1, "The Water market")
                   ShowLegend       = 1
                   Visible          = 1.
           ACCEPT  OMITTED.
           EXIT    PROGRAM
           STOP    RUN
           .


[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards
Thanks for the answers! i'll test them. Wooop!

[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards
I'm having issues with mschart.ocx with the license. Reading in internet, i get the general idea that it must be installed with Visual Basic V6 to get the license. Searching in microsoft, i only see a microsoft chart controls for framework 3.5. I installed them but acucorp don't see them, and myself don't see any new activeX control installed. I'll look a bit more but i give up. We have another alternatives like mschrt20.ocx (a bit limited) and Fx charts, but only to remove my doubts... how you use mschart.ocx?

Thanks anyway :D

[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards
I'm having issues with mschart.ocx with the license. Reading in internet, i get the general idea that it must be installed with Visual Basic V6 to get the license. Searching in microsoft, i only see a microsoft chart controls for framework 3.5. I installed them but acucorp don't see them, and myself don't see any new activeX control installed. I'll look a bit more but i give up. We have another alternatives like mschrt20.ocx (a bit limited) and Fx charts, but only to remove my doubts... how you use mschart.ocx?

Thanks anyway :D

[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards
The ACUCOBOL-GT runtime will automatically apply a license to the mschart.ocx. However, not all versions do. I don't remember instantly what version this was introduced in, but I am pretty sure all versions as of 7.0.0 does.

[Migrated content. Thread originally posted on 20 August 2009]

Hello,

Someone works with cake or bar graphs in his application? has cobol a function to do it? maybe an active-x? third party programs? Any famous one?

Questions!! Questions!!

Thanks afterwards
We are working with acubench and runtime v8. I see the microsoft chart controls v6.0 correctly in my activeX list, but when we add it in the screen designer, it shows "Design-time license for OCX.MSChart control missing. Loading control with place holder only". I think then... ok, i'll display it on runtime, but still giving the no license message when the program starts.

Maybe you refer to the activeX version instead of acubench version? I look in your example the definition of your screen, and don't see the license. I mean:

03 ax-graf, MSChart,
COL 11,40, LINE 1,70, LINES 39,40 CELLS,
SIZE 69,30 CELLS,
ID IS 1,
LICENSE-KEY "8E147C69-BD50-11d1-B137-0000F8753F5D"

This is my definition, using mschrt20.ocx (microsoft chart controls v6.0 Oledb) but this activeX appears to be a bit limited (no 3d pie chart, even having it in charttype propierties, give fatal errors when used it, that's why trying to use another one).

Anyways, I'm new with the use of activeX. Any more help?

Thanks!