heatmap.js Parameter Description

 

 

blur: each point is composed of two circles, respectively inner and outer circles; outer larger, the blur appears at this point, part of the inner circle clearer; color is fixed and the outer circle and the inner circle Color different, the color of the circle is determined by the value; blur circle determined outer and inner proportion size is 0-1; the larger the value, the greater the proportion of the outer circle.

 

radius: the radius of the point of decision.

 

maxOpacity: degree of transparency of the decision point, the value of 0-1, larger values ​​opaque; the opacity settings, minOpacity and maxOpacity invalid; minOpacity with default maxOpacity 0 and 1, useGridentOpacity cause them to fail;

 

min, max: set the value interval corresponding to the color grident; value position value of a point in [min, max] which determines the color of grident.

 

grident: value 0 corresponds to white, undefined values ​​are taken mixed color between two colors.

 

onExtremaChange:由setData、setDataMax、setDataMin触发。

 

Relationship value (count), min, max, grident, opacity of: using the value (value-min) / (max-min) to determine the value grident the color and opacity of the effect as presented on the map (guess experimental results) . If the value <min, opacity will get a smaller value, in particular not determined.

 xfield, yfield, valuefield: define the x, y, value of the attribute name.

setData (): will be clear before rendering, redraw;

setDataMax (newMax): redrawn using newMax value and rendering;

addData (): max value is recalculated and plotted rendering;

configure (): reconfigure the parameters, the trigger again fully rendered;

getValueAt (): Returns the weight change pixels; if addData, weights obtained by the color overlay;

 Rendering Algorithm: opacity = value-min / max -min; if the value <min or less than the value 0.01, barely visible; weights affect the transparency, impact rendered color transparency;

 

Law: the first time point when the rendering, if the pixel value is greater than if the max value, then the maximum range of a color display, but will not change the current value of the max; if by addData () Add the point at which the a value that the value of the original and exceeds the current max value, will change the max value;

 

Reference: http: //blog.csdn.net/rongchaoliu/article/details/47830799

blur: each point is composed of two circles, respectively inner and outer circles; outer larger, the blur appears at this point, part of the inner circle clearer; color is fixed and the outer circle and the inner circle Color different, the color of the circle is determined by the value; blur circle determined outer and inner proportion size is 0-1; the larger the value, the greater the proportion of the outer circle.

 

radius: the radius of the point of decision.

 

maxOpacity: degree of transparency of the decision point, the value of 0-1, larger values ​​opaque; the opacity settings, minOpacity and maxOpacity invalid; minOpacity with default maxOpacity 0 and 1, useGridentOpacity cause them to fail;

 

min, max: set the value interval corresponding to the color grident; value position value of a point in [min, max] which determines the color of grident.

 

grident: value 0 corresponds to white, undefined values ​​are taken mixed color between two colors.

 

onExtremaChange:由setData、setDataMax、setDataMin触发。

 

Relationship value (count), min, max, grident, opacity of: using the value (value-min) / (max-min) to determine the value grident the color and opacity of the effect as presented on the map (guess experimental results) . If the value <min, opacity will get a smaller value, in particular not determined.

 xfield, yfield, valuefield: define the x, y, value of the attribute name.

setData (): will be clear before rendering, redraw;

setDataMax (newMax): redrawn using newMax value and rendering;

addData (): max value is recalculated and plotted rendering;

configure (): reconfigure the parameters, the trigger again fully rendered;

getValueAt (): Returns the weight change pixels; if addData, weights obtained by the color overlay;

 Rendering Algorithm: opacity = value-min / max -min; if the value <min or less than the value 0.01, barely visible; weights affect the transparency, impact rendered color transparency;

 

Law: the first time point when the rendering, if the pixel value is greater than if the max value, then the maximum range of a color display, but will not change the current value of the max; if by addData () Add the point at which the a value that the value of the original and exceeds the current max value, will change the max value;

 

Reference: http: //blog.csdn.net/rongchaoliu/article/details/47830799

Guess you like

Origin www.cnblogs.com/h2zZhou/p/11069307.html