Skip to content

Commit

Permalink
chore: stacks Heatmap controls (apache#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored and zhaoyongjie committed Nov 25, 2021
1 parent 2a12635 commit 81962b1
Showing 1 changed file with 35 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ const config: ControlPanelConfig = {
description: t('Number of steps to take between ticks when displaying the X scale'),
},
},
],
[
{
name: 'yscale_interval',
config: {
Expand Down Expand Up @@ -143,6 +145,8 @@ const config: ControlPanelConfig = {
),
},
},
],
[
{
name: 'normalize_across',
config: {
Expand Down Expand Up @@ -176,6 +180,8 @@ const config: ControlPanelConfig = {
description: t('Left margin, in pixels, allowing for more room for axis labels'),
},
},
],
[
{
name: 'bottom_margin',
config: {
Expand Down Expand Up @@ -204,7 +210,31 @@ const config: ControlPanelConfig = {
),
},
},
'y_axis_format',
],
['y_axis_format'],
[
{
name: 'sort_x_axis',
config: {
type: 'SelectControl',
label: t('Sort X Axis'),
choices: sortAxisChoices,
clearable: false,
default: 'alpha_asc',
},
},
],
[
{
name: 'sort_y_axis',
config: {
type: 'SelectControl',
label: t('Sort Y Axis'),
choices: sortAxisChoices,
clearable: false,
default: 'alpha_asc',
},
},
],
[
{
Expand All @@ -217,6 +247,8 @@ const config: ControlPanelConfig = {
description: t('Whether to display the legend (toggles)'),
},
},
],
[
{
name: 'show_perc',
config: {
Expand All @@ -239,6 +271,8 @@ const config: ControlPanelConfig = {
description: t('Whether to display the numerical values within the cells'),
},
},
],
[
{
name: 'normalized',
config: {
Expand All @@ -252,28 +286,6 @@ const config: ControlPanelConfig = {
},
},
],
[
{
name: 'sort_x_axis',
config: {
type: 'SelectControl',
label: t('Sort X Axis'),
choices: sortAxisChoices,
clearable: false,
default: 'alpha_asc',
},
},
{
name: 'sort_y_axis',
config: {
type: 'SelectControl',
label: t('Sort Y Axis'),
choices: sortAxisChoices,
clearable: false,
default: 'alpha_asc',
},
},
],
],
},
],
Expand Down

0 comments on commit 81962b1

Please sign in to comment.