Difference: CDXYSetBarColorDP (1 vs. 6)

Revision 62012-02-24 - JeanNeron

Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="CDChartDirectorDesignerAPI"
>
>
META TOPICPARENT name="CDChartDirectorXYChartRoutines"
 

.XY SET BAR CLR:DP

This subroutine sets the color of the bar at the "current" data point.

Revision 52012-01-11 - JeanNeron

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

.XY SET BAR CLR:DP

Line: 21 to 21
  If you do not pass the <data_point_no>, then it will try to set the color for the "current" data point. This is only valid after adding a data point via .POINT ADD NEW. Note that you can set the colors before you add the data by supplying the <data_point_no>. The first data point you add via .POINT ADD NEW will be 1, the second 2, and so on. If you have used this routine to add the bar colors by data point in advance, then the bars will have those colors when the chart is rendered.
Changed:
<
<
You can set the color for the current data set via .XY SET BAR CLR:DS, or the current data group via .XY SET BAR CLR:DG or the current data layer via .XY SET BAR CLR:LR. See also .XY SET BAR CLR.
>
>
You can set the color for the current data set template via .XY SET BAR CLR:DS, or the current data group via .XY SET BAR CLR:DG or the current data layer via .XY SET BAR CLR:LR. See also .XY SET BAR CLR.
  After setting the bar color, the bar spec becomes the "current" color spec.

Revision 42011-12-05 - JeanNeron

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

.XY SET BAR CLR:DP

Line: 15 to 15
  IF 0CD .XY SET BAR CLR:DP NE

Description:

Changed:
<
<
Sets the color of the bars at the "current" data point. You must have intialized the chart as an XY Chart via .CHART INITIALIZE and added a bar layer via .XY ADD BAR LAYER for this to have any effect.
>
>
Sets the color of the bars at the "current" data point. You must have initialized the chart as an XY Chart via .CHART INITIALIZE and added a bar layer via .XY ADD BAR LAYER for this to have any effect.
 
This routine receives two optional parameters. The first parameter is either a <color_spec_name> or a <color_value>.
The second parameter is the index number of the data point to set the color of.

Revision 32011-12-02 - JeanNeron

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

.XY SET BAR CLR:DP

Line: 9 to 9
 
      PASS         <color_spec_name>          FIELD            SHARE? N
      *        OR
      PASS         <color_value>              FIELD            SHARE? N

Added:
>
>
PASS <data_point_no> FIELD SHARE? N
  GOSUB 0CD .XY SET BAR CLR:DP
    • Check for error IF 0CD .XY SET BAR CLR:DP NE
Line: 16 to 17
  Sets the color of the bars at the "current" data point. You must have intialized the chart as an XY Chart via .CHART INITIALIZE and added a bar layer via .XY ADD BAR LAYER for this to have any effect.
Changed:
<
<
The parameter is optional, if not received or blank, the color will be reset to the default.
>
>
This routine receives two optional parameters. The first parameter is either a <color_spec_name> or a <color_value>.
The second parameter is the index number of the data point to set the color of.

If you do not pass the <data_point_no>, then it will try to set the color for the "current" data point. This is only valid after adding a data point via .POINT ADD NEW. Note that you can set the colors before you add the data by supplying the <data_point_no>. The first data point you add via .POINT ADD NEW will be 1, the second 2, and so on. If you have used this routine to add the bar colors by data point in advance, then the bars will have those colors when the chart is rendered.

  You can set the color for the current data set via .XY SET BAR CLR:DS, or the current data group via .XY SET BAR CLR:DG or the current data layer via .XY SET BAR CLR:LR. See also .XY SET BAR CLR.

Revision 22011-11-11 - JeanNeron

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

.XY SET BAR CLR:DP

Revision 12011-10-13 - JeanNeron

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

.XY SET BAR CLR:DP

This subroutine sets the color of the bar at the "current" data point.


Usage:

      PASS         <color_spec_name>          FIELD            SHARE? N
      *        OR
      PASS         <color_value>              FIELD            SHARE? N
      GOSUB    0CD .XY SET BAR CLR:DP
      *        Check for error 
      IF       0CD .XY SET BAR CLR:DP     NE

Description:

Sets the color of the bars at the "current" data point. You must have intialized the chart as an XY Chart via .CHART INITIALIZE and added a bar layer via .XY ADD BAR LAYER for this to have any effect.

The parameter is optional, if not received or blank, the color will be reset to the default.

You can set the color for the current data set via .XY SET BAR CLR:DS, or the current data group via .XY SET BAR CLR:DG or the current data layer via .XY SET BAR CLR:LR. See also .XY SET BAR CLR.

After setting the bar color, the bar spec becomes the "current" color spec.

See ColorSpec for more information on working with colors.

See Datasets Overview for more information on data sets, data groups, and layers.

Comments:

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


<--/commentPlugin-->

-- JeanNeron - 2011-10-13

 
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