mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
Added smoothening option
This commit is contained in:
parent
40b28d0afa
commit
0714dc62d0
@ -116,6 +116,15 @@ class FormFactory(object):
|
||||
'black_white']),
|
||||
default='fire',
|
||||
description=""),
|
||||
'canvas_image_rendering': SelectField(
|
||||
'Rendering', choices=(
|
||||
('pixelated', 'pixelated (Sharp)'),
|
||||
('auto', 'auto (Smooth)'),
|
||||
),
|
||||
default='pixelated',
|
||||
description=(
|
||||
"image-rendering CSS attribute of the canvas object that "
|
||||
"defines how the browser scales up the image")),
|
||||
'xscale_interval': SelectField(
|
||||
'XScale Interval', choices=self.choicify(range(1, 50)),
|
||||
default='1',
|
||||
|
@ -62,6 +62,7 @@ px.registerViz('heatmap', function(slice) {
|
||||
.attr("height", heatmapDim[Y])
|
||||
.style("width", hmWidth + "px")
|
||||
.style("height", hmHeight + "px")
|
||||
.style("image-rendering", fd.canvas_image_rendering)
|
||||
.style("left", margins.l + "px")
|
||||
.style("top", margins.t + "px")
|
||||
.style("position", "absolute");
|
||||
|
@ -1212,6 +1212,7 @@ class HeatmapViz(BaseViz):
|
||||
'fields': (
|
||||
'linear_color_scheme',
|
||||
('xscale_interval', 'yscale_interval'),
|
||||
'canvas_image_rendering',
|
||||
)
|
||||
},)
|
||||
def query_obj(self):
|
||||
|
Loading…
Reference in New Issue
Block a user