Difference: CDChartDirectorKnownIssues (32 vs. 33)

Revision 332012-01-09 - JeanNeron

Line: 1 to 1
 
META TOPICPARENT name="CDChartDirectorDesignerAPI"

Known Issues

  • All examples should be tested on a Windows Server!! There is a definate Linux slant to some things, ie, some routines check to see if the first character of a file name is a / or \ to determine if it's a complete pathname or not. Under Windows, a complete path begins with a drive letter, not a / or \.
Added:
>
>
  • The examples in 1CD have the path /var/www/html/ChartDirector/phpdemo hardcoded. This path can vary depending on Windows vs Linux installation. The examples should probably check the server type and use the appropriate default.
 
  • The Linear Meter chart type has a few problems:
    • The pointer files (PTR1/2) are not initialized when .CHART INITIALIZE is called, so each time you call .CHART RENDER, the previously defined pointers appear as well as the one(s) you intended for the current chart.
    • The PRT1/2 files are not linked to a particular CHTSPEC record, so if you are working with multiple charts of this type, when you render a chart the pointer(s) will appear on all charts, not just the current one.
Line: 10 to 11
 
    • It verifies the file exists only for a full pathname, should verify image directory as well
    • Also check .CHART SET BG WALLPAPR, probably has the same problem.
    • * FIXED *, added API .CHART SET IMAGE PATH for user to specify path(s) for images, changed these routines to verify image file using the path.
Deleted:
<
<
  • The examples in 1CD have the path /var/www/html/ChartDirector/phpdemo hardcoded. This path can vary depending on Windows vs Linux installation. The examples should probably check the server type and use the appropriate default.
 
  • The .CHART SET SHAPE AA seems to update the memory file, but unless you also call .CHART SET TXT AA MODE, nothing gets put in the php script. Even if you call .CHART SET TXT AA MODE, the parameter for shape AA is always true, even if you turned it off via .CHART SET SHAPE AA. * Fixed * - C.BASECHART was checking for Yes/No instead of On/Off (CHTSPEC BC SHAPE AA)
  • The .LEGEND SET ICON GAP seems to update the memory file, but unless you also call .LEGEND SET ICON SZ, nothing gets written to the php script. * Fixed *. C.BASECHART was only checking the icon width field, needed to check width, height and gap to call LEGENDBOX.SET.KEY.SIZE. Changed LEGENDBOX.SET.KEY.SIZE to default width to -1 if blank.
  • The .LEGEND SET TEMPLATE causes the chart to fail to render unless you enclose the text in "'s. When generating the php script, the API should do this automatically. * Fixed * - was missing GOSUB :ESCAPE AND QUOTE TEXT in LEGENDBOX.SET.TEXT. Was also missing from other similar routines, added where necessary.
Line: 21 to 21
 
  • .PIE SET LBL DISTANCE doesn't seem to do anything. * Not a bug * - when using the 'side' layout method, you can't decrease the distance within the 'invisible retangle'.
  • If you pass a 'data point' to .XY SET BAR CLR, funny things happen. It creates a LAYERDGP record & saves the RID. Subsequent calls to .XY SET BAR CLR with no 'data point' will just change the colour on the LAYERDGP record, which probably isn't what the designer wanted. The colours will probably not render correctly on the chart.
  • The .XY SET BAR LBL MIN SZ subroutine is used to set the minimum distance for a label to appear within a bar on a bar chart, but there doesn't seem to be a way to get labels inside the bar on a bar chart in the first place.
Changed:
<
<
  • Setting custom shapes on the second data group in a multi layer bar chart does not work. The PHP code looks right, possible CD bug?
>
>
  • Setting custom shapes on the second data group in a multi layer bar chart does not work. The PHP code looks right, possible CD bug? * Fixed * - C.XYCHART was not passing the right dataset # to BARLAYER.SET.BAR.SHAPE/BARLAYER.SET.BAR.SHAPE2.
 
  • Consider renaming .LAYER ADD DATASET to something that includes TEMPLATE, since the use of 'dataset' conflicts with the use of 'dataset' when adding data points. Also consider renaming .LAYER LINK DATASET to include the word TEMPLATE. * Fixed* - added TM to end of process name. Changed work field name as well & did change all refs in 0CD/1CD.
  • .AXIS SET AXIS L has no effect on the length of the axis line. The generated PHP code looks right, but it seems to have no effect on the generated chart - possible Chart Director bug.
  • .AXIS SET AXIS RND MIN and .AXIS SET AXIS RND MAX don't work unless you use both subroutines. (Sub C.XYCHART," Set axis rounded minimum & maximum IF 0CD AXISSPEC AXIS RND MIN NE AND 0CD AXISSPEC AXIS RND MAX NE". Should be an OR?) * Fixed * - changed to an OR.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback