Difference: CDChartDirectorKnownIssues (48 vs. 49)

Revision 492012-01-20 - JeanNeron

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

Known Issues

Line: 19 to 19
 
  • The .PIE SET SECT EDGE W subroutine sets the value in the memory files, but the rendered chart doesn't look any different. Looks like when setSectorStyle code is generated, the edge width is missing. Also, if you don't also set .PIE SET SECT SHADING, the setSectorStyle code is not generated at all, even if a width was specified. * Fixed * Routine was not being called unless shading was also set. Now setting the shading, edge color or width will trigger the PHP code.
  • If you explode all the sectors in a pie chart via .PIE SET SECT POSITION then you can't adust the distance on specific sectors via .PIE SET SECT EXP DIST. The generated setExplode method does not include the distance parameter or isn't being generated for individual sectors. * Fixed * - needed to call the subroutine if sector is exploded OR a distance has been set.
  • .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'.
Changed:
<
<
  • 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. See B05 GRADIENT BAR SHADING example.
>
>
  • 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. See B05 GRADIENT BAR SHADING example. * Fixed * changed .XY SET BAR CLR and .XY SET BAR CLR:DP to ignore WORK LAYERDGP CURR RID and just use the data point referenced by WORK DSET2 CURR RID.
 
  • 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. * Fixed * - added API's
  • 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.
Line: 27 to 27
 
  • .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.
  • Setting AXISSPEC TICK MAJ DIST and AXISSPEC TICK MIN DIST (via .AXIS SET TICK DENSITY) calls the setMinTickInc method instead of setTickDensity. * Fixed * - C.XYCHART now calls AXIS.SET.TICK.DENSITY which uses setTickDensity.
  • The .AXIS SET LBL OFFSET routine accepts Pixel or Scale as a second parameter, but the rendered chart always treats the offset as Scale. * Fixed * - Pixel is not supported, removed from Wiki and API. Changed offset to allow decimal values, same as .AXIS SET TICK OFFSET.
Changed:
<
<
  • Attempting to set the brightness via .COLOR SET BRIGHTNESS results in a php error: PHP Fatal error: Call to undefined function adjustBrightness() in <whatever file> on line <whatever line>. FWIW, adjustBrightness is documented in Chart Director. Appears to be a Chart Director bug. Your chart will not render if you use this subroutine.
  • Attempting to set the brightness via .COLOR SET HALF COLOR results in a php error: PHP Fatal error: Call to undefined function halfColor() in <whatever file> on line <whatever line>. FWIW halfColor is documented in Chart Director. Appears to be a Chart Director bug. Your chart will not render if you use this subroutine.
>
>
  • Attempting to set the brightness via .COLOR SET BRIGHTNESS results in a php error: PHP Fatal error: Call to undefined function adjustBrightness() in <whatever file> on line <whatever line>. * Fixed * The PHP code needed to invoke a method & assign the result to a variable.
  • Attempting to set the brightness via .COLOR SET HALF COLOR results in a php error: PHP Fatal error: Call to undefined function halfColor() in <whatever file> on line <whatever line>. * Fixed * The PHP code needed to invoke a method & assign the result to a variable.
 
  • .COLOR SET DASH LINE accepts hex values with a prefix of '0x', '#' or nothing at all, but the chart will only be rendered if the prefix is '0x'. Either improve the edits, or convert the '#' or no prefix to a '0x' prefix before updating COLRSPEC. * Fixed * - converts "#" and no prefix to CD format '0x'
  • .TEXT SET FONT SZ is supposed to accept a height & width, but only uses height to set font size in the addTitle method. * Fixed * - In C.BASECHART the height was getting cleared before calling C.TEXTBOX ATTRIBUTES. Should only clear height if width is blank or equal to height. C.XYCHART was not calling C.TEXTBOX ATTRIBUTES for axis labels at all.
  • Setting a width via .TEXT SET FONT SZ:W and then using the text box in .CHART SET TITLE does not work. * Not a bug * - You MUST set Height, and only then can you set width. Wiki updated accordingly.
 
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