Skip to content

Commit cff7868

Browse files
committed
samples: update heatmap gradient-legend demo
1 parent 83f81d9 commit cff7868

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

samples/react/heatmap/gradient-legend.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
// automatically reorients based on legend.position.
112112
gradientLegend: {
113113
enabled: true,
114-
width: 240,
114+
width: '75%',
115115
thickness: 14,
116116
showHoverValue: true,
117117
},
@@ -126,10 +126,10 @@
126126
width: 1,
127127
},
128128
legend: {
129-
position: 'bottom',
129+
position: 'right',
130130
},
131131
title: {
132-
text: 'Temperature Heatmap — hover a cell to see its value on the gradient',
132+
text: 'Heatmap with gradient legend',
133133
},
134134
},
135135
})

samples/source/heatmap/gradient-legend.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ plotOptions: {
3737
// automatically reorients based on legend.position.
3838
gradientLegend: {
3939
enabled: true,
40-
width: 240,
40+
width: '75%',
4141
thickness: 14,
4242
showHoverValue: true,
4343
}
@@ -52,10 +52,10 @@ stroke: {
5252
width: 1
5353
},
5454
legend: {
55-
position: 'bottom'
55+
position: 'right'
5656
},
5757
title: {
58-
text: 'Temperature Heatmap — hover a cell to see its value on the gradient'
58+
text: 'Heatmap with gradient legend'
5959
},
6060
</options>
6161

samples/vanilla-js/heatmap/gradient-legend.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
// automatically reorients based on legend.position.
100100
gradientLegend: {
101101
enabled: true,
102-
width: 240,
102+
width: '75%',
103103
thickness: 14,
104104
showHoverValue: true,
105105
},
@@ -114,10 +114,10 @@
114114
width: 1,
115115
},
116116
legend: {
117-
position: 'bottom',
117+
position: 'right',
118118
},
119119
title: {
120-
text: 'Temperature Heatmap — hover a cell to see its value on the gradient',
120+
text: 'Heatmap with gradient legend',
121121
},
122122
}
123123

samples/vue/heatmap/gradient-legend.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
// automatically reorients based on legend.position.
116116
gradientLegend: {
117117
enabled: true,
118-
width: 240,
118+
width: '75%',
119119
thickness: 14,
120120
showHoverValue: true,
121121
},
@@ -130,10 +130,10 @@
130130
width: 1,
131131
},
132132
legend: {
133-
position: 'bottom',
133+
position: 'right',
134134
},
135135
title: {
136-
text: 'Temperature Heatmap — hover a cell to see its value on the gradient',
136+
text: 'Heatmap with gradient legend',
137137
},
138138
},
139139
},

0 commit comments

Comments
 (0)