|
|
|
|
<Chart>.HMColor (Function) In french: <Graphe>.HMCouleur Specifies the colors of different values in a Heatmap chart. // Define the colors CHART_HMap.HMColor(-50, DarkBlue) CHART_HMap.HMColor(+50, LightRed) FOR i = 1 TO 500 CHART_HMap.HMAddData(Random(-100, 100), Random(-100, 100), -100) CHART_HMap.HMAddData(Random(-100, 100), Random(-100, 100), 100) END CHART_NoName1.Draw() Syntax
<Chart control>.HMColor(<Level> , <Color>)
<Chart control>: Control name Name of the Chart control to use (found in the window editor or in the report editor).
<Level>: Real or Constant Level from which the color will be applied. Corresponds to: - a real value,
- the grHMColorEmptyValue constant. In this case, the color will be applied to the data outside level or without value. This color is transparent by default.
<Color>: Integer or Integer constant Color that will be given to the level. This color can correspond to: Remarks Managing colors The colors are defined by level. For the values found between 2 levels, a linear gradient is applied by default. This behavior can be modified by <Chart>.Parameter associated with the grHMDisplayColor constant. The following syntax is used:
<Chart control>.Parameter(grHMDisplayColor, <Display type>) where <Display type> corresponds to one of the following constants:
| | grColorGradient (Default value) | A linear gradient is applied to the intermediate values. | grLowerLevel | The display of colors is done by level. All the values less than or equal to the level will take the color given by <Chart>.HMColor. | grHigherLevel | The display of colors is done by level. All the values greater than or equal to the level will take the color given by <Chart>.HMColor. |
For the facets outside color bounds or without value, the color specified by grHMColorEmptyValue will be applied. This color is transparent by default. Remark: The colors defined by <Chart>.HMColor will be taken into account during the next call to <Chart>.Draw.
Related Examples:
|
Training (WINDEV): WD Chart
[ + ] This example presents the different uses of the Chart control. Different types of charts are presented: - Pie - Sunburst - Line - Scatter - Column - Area - etc. The main features presented here are the possibility to customize of charts from the code, as well as to fill the chart from an HFSQL data file, or in the editor.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|