Known Issues

  • 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.
  • The .CHART SET BG IMAGE routine does not pick up images in the default image directory, only a full pathname works
    • 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.
  • 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
  • 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.
  • 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.
  • Setting the vertical gap via .LEGEND SET GAP:V doesn't work unless you also set the horizontal gap via .LEGEND SET GAP:H. If the horizontal gap is not set, the php script doesn't include the setKeySpacing method, which controls both horizontal & vertical.
  • .PIE SET LBL LAYOUT accepts 'INSIDE' as an argument to put the labels inside the sectors, but it doesn't work.
  • .PIE SET LBL BOUNDS (and the routines to set upper/lower individually) appear to work and the generated PHP code looks right, but it seems to have no effect on the generated chart.
  • 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.
  • 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.
  • .PIE SET LBL DISTANCE doesn't seem to do anything.
  • 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.
  • 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?
  • 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.
  • .AXIS SET AXIS L has no effect on the length of the axis line.
  • .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?)
  • Setting AXISSPEC TICK MAJ DIST and AXISSPEC TICK MIN DIST (via .AXIS SET TICK DENSITY) calls the setMinTickInc method instead of 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.
  • 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.
  • 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.
  • .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.
  • .TEXT SET FONT SZ is supposed to accept a height & width, but only uses height to set font size in the addTitle method.
  • Setting a width via .TEXT SET FONT SZ:W and then using the text box in .CHART SET TITLE does not work.
  • Setting a height via .TEXT SET FONT SZ:H and then using the text box in .CHART SET TITLE causes the height to be used for both height and width (the height is used as a paramter on the addTitle method).
  • .TEXT SET TXT MAX:H has no affect. The memory file is updated, but does not affect the rendered chart. If set via .TEXT SET TXT MAX, then it works.
  • The .TEXT SET TXT MARGIN:(T,L,B,R) subroutines apply the specified margin to all margins instead of just the one the routine is designed for.
  • When a shape is set at the Layer (XYLAYER) or Data Group (LAYERDG), it is not used when the chart is generated. Setting it at the Data Set Template (LAYERDGD) level works.
  • The .TEXT SET BX EDGE CLR routine does not change the color of a legend box edge. If you use .TEXT SET BX BG CLR to TRANSPARENT makes the edge transparent as well.
  • Various families of routines (like .XY SET LINE CLR, .XY SET LINE CLR:LR, etc) are supposed to set some attribute at the layer, data group, data template or data point level, based on a built in hierarchy. However, the edits prevent the routine from running unless all of those are present. This is wrong, so long as one of them is present, the routine should run & set it.
  • Sample Chart Issues:
    • P04. SIDE LABEL LAYOUT
      • No glass affect for the sector labels
    • P05. CIRCULAR LABEL LAYOUT
      • No gradient background
    • P07. PIE CHART WITH LEGEND (2)
      • no gradient background
    • P08. EXPLODED PIE CHART
      • No Gradient background
      • No gradient sector labels
    • P09. ICON PIE CHART (1)
      • No glass shading on title
    • P10. ICON PIE CHART (2)
      • no logo in bottom right corner
      • No glass shading on title
    • P12. DONUT CHART
      • no separator line under title (addLine property)
      • no borders around sector labels
    • P13. 3D DONUT CHART
      • no separator line under title (addLine property)
      • no gradient background
      • no gradient background on sector labels
    • P15. TEXTURE DONUT CHART
      • no textures (pattern not passed to .PIE SET SECT BG CLR?)
    • P21. TEXT STYLES AND COLORS
      • No texture on chart title
    • P16. CONCENTRIC DONUT CHART
      • No example, no support for merge method.
    • B02. MULTI-COLOR BAR CHART
      • Unable to set 3D border effects for the bars.
    • B03. SOFT BAR SHADING
      • Unable to set gradient background
      • Unable to set soft lighting effect of the bars
      • Unable to set font attributes of system generated Y-axis labels.
    • B04. GLASS BAR SHADING
      • No Glass shading effect for the bars.
      • Can't change the font style of the autogenerated Y axis labels
    • B05. GRADIENT BAR SHADING
      • Can't draw a line under the title
      • No gradient background
      • No gradient on the bars
      • Can't change the color of the autogenerated Y axis labels
      • Can't call packPlotArea method
    • B06. CYLINDER BAR SHADING
      • Can't change the font style of the autogenerated Y axis labels
    • B10. Stacked Bar Chart
      • Unable to get data segment labels or aggregate labels on chart (no way to call setAggregateLabelStyle or setDataLabelStyle methods).
    • B11. PERCENTAGE BAR CHART
      • Unable to get data segment labels or aggregate labels on chart (no way to call setAggregateLabelStyle or setDataLabelStyle methods).
      • Unable to make edges of data segments transparent
      • Unable to have gradient background
      • Unable to use soft lighting effect on data segments.
      • Can't call packPlotArea method
    • B13. SOFT MULTI BAR CHART
      • Unable to have gradient background
      • Unable to use soft lighting effect on data segments.
      • Can't change the font style of the autogenerated Y axis labels
    • B14. GLASS MULTI BAR CHART
      • Unable to have gradient background
      • Unable to use glass lighting effect on data segments.
      • Can't change the font style of the autogenerated Y axis labels
    • B15. GRADIENT MULTI BAR CHART
      • Unable to have gradient background
      • Unable to use gradient effect on data segments.
      • Can't change the font style of the autogenerated Y axis labels
    • B16. MULTI-CYLINDER CHART
      • Unable to assign cylinder shape at layer or group level, have to assign at data template level.
    • B19. MULTI-STACKED BAR CHART
      • Unable to get data segment labels or aggregate labels on chart (no way to call setAggregateLabelStyle or setDataLabelStyle methods).
      • Unable to make edges of data segments transparent
      • chart is wrong, data is not charted correctly.
    • B21. POSITIVE NEGATIVE BARS
      • Unable to get data segment labels or aggregate labels on chart (no way to call setAggregateLabelStyle or setDataLabelStyle methods).
      • Can't change the font style of the autogenerated Y axis labels
      • Unable to set zone colors
    • B22. BORDERLESS BAR CHART
      • No Gradient colors for bars
      • Unable to get data segment labels or aggregate labels on chart (no way to call setAggregateLabelStyle or setDataLabelStyle methods).
    • B23. DUAL HORIZONTAL BAR CHART
      • No example, no support for addChart method.
    • B24. BARS WITH MARKS
      • No API for packPlotArea
      • No API for text box alignment (setAlignment method)
      • No softlighting effect
      • No API for adding box whisker layer
    • B25. PARETO CHART
      • Can't call packPlotArea method
      • Can't bind the line layer to the secondary (right) y-axis using $lineLayer->setUseYAxis2();
      • Can't set size of circle shape on Pareto line
      • Chart is incorrect, adds extra bar layer of pareto data, covering up intended bar layer
      • No soft lighting for bars
      • Unable to set Y-axis scale (primary or secondary)
      • Unable to sync Y axis scale
    • B26. VARIABLE WIDTH BAR CHART
      • No gradient background.
      • chart is wrong because we can't call setXData method

Comments:

Read what other users have said about this page or add your own comments.


-- JeanNeron - 2011-12-05

Edit | Attach | Watch | Print version | History: r60 | r19 < r18 < r17 < r16 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r17 - 2011-12-20 - JeanNeron
 
  • Edit
  • Attach
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