Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
Remove control label_colors
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Oct 25, 2021
1 parent 253399b commit 38909cb
Show file tree
Hide file tree
Showing 25 changed files with 22 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const datasourceAndVizType: ControlPanelSectionConfig = {

export const colorScheme: ControlPanelSectionConfig = {
label: t('Color Scheme'),
controlSetRows: [['color_scheme', 'label_colors']],
controlSetRows: [['color_scheme']],
};

export const annotations: ControlPanelSectionConfig = {
Expand Down
5 changes: 1 addition & 4 deletions plugins/legacy-plugin-chart-chord/src/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ const config: ControlPanelConfig = {
{
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['y_axis_format', null],
['color_scheme', 'label_colors'],
],
controlSetRows: [['y_axis_format', null], ['color_scheme']],
},
],
controlOverrides: {
Expand Down
2 changes: 1 addition & 1 deletion plugins/legacy-plugin-chart-histogram/src/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'link_length',
Expand Down
2 changes: 1 addition & 1 deletion plugins/legacy-plugin-chart-partition/src/controlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const config: ControlPanelConfig = {
expanded: true,
tabOverride: 'customize',
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'number_format',
Expand Down
2 changes: 1 addition & 1 deletion plugins/legacy-plugin-chart-rose/src/controlPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'number_format',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const config: ControlPanelConfig = {
{
label: t('Chart Options'),
expanded: true,
controlSetRows: [['color_scheme', 'label_colors']],
controlSetRows: [['color_scheme']],
},
],
controlOverrides: {
Expand Down
2 changes: 1 addition & 1 deletion plugins/legacy-plugin-chart-sankey/src/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const config: ControlPanelConfig = {
{
label: t('Chart Options'),
expanded: true,
controlSetRows: [['color_scheme', 'label_colors']],
controlSetRows: [['color_scheme']],
},
],
};
Expand Down
2 changes: 1 addition & 1 deletion plugins/legacy-plugin-chart-treemap/src/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const config: ControlPanelConfig = {
expanded: true,
tabOverride: 'customize',
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'treemap_ratio',
Expand Down
2 changes: 1 addition & 1 deletion plugins/legacy-preset-chart-nvd3/src/Area/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const config: ControlPanelConfig = {
},
},
],
['color_scheme', 'label_colors'],
['color_scheme'],
[richTooltip, showControls],
],
},
Expand Down
1 change: 0 additions & 1 deletion plugins/legacy-preset-chart-nvd3/src/Bar/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const config: ControlPanelConfig = {
expanded: true,
controlSetRows: [
['color_scheme'],
['label_colors'],
[showBrush],
[showLegend],
[showBarValue],
Expand Down
5 changes: 1 addition & 4 deletions plugins/legacy-preset-chart-nvd3/src/Bubble/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
tabOverride: 'customize',
controlSetRows: [
['color_scheme', 'label_colors'],
[showLegend, null],
],
controlSetRows: [['color_scheme'], [showLegend, null]],
},
{
label: t('X Axis'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const config: ControlPanelConfig = {
{
label: t('Chart Options'),
expanded: true,
controlSetRows: [['color_scheme', 'label_colors']],
controlSetRows: [['color_scheme']],
},
{
label: t('X Axis'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const config: ControlPanelConfig = {
expanded: true,
controlSetRows: [
['color_scheme'],
['label_colors'],
[showLegend],
[showBarValue],
[barStacked],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const config: ControlPanelConfig = {
{
label: t('Chart Options'),
expanded: true,
controlSetRows: [['color_scheme', 'label_colors'], [showLegend], [xAxisFormat]],
controlSetRows: [['color_scheme'], [showLegend], [xAxisFormat]],
},
{
label: t('Y Axis 1'),
Expand Down
1 change: 0 additions & 1 deletion plugins/legacy-preset-chart-nvd3/src/Line/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const config: ControlPanelConfig = {
expanded: true,
controlSetRows: [
['color_scheme'],
['label_colors'],
[showBrush],
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const config: ControlPanelConfig = {
tabOverride: 'customize',
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'prefix_metric_with_slice_name',
Expand Down
2 changes: 1 addition & 1 deletion plugins/legacy-preset-chart-nvd3/src/Pie/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const config: ControlPanelConfig = {
},
},
],
['color_scheme', 'label_colors'],
['color_scheme'],
],
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
...createCustomizeSection(t('Query A'), ''),
...createCustomizeSection(t('Query B'), 'B'),
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'seriesType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
...showValueSection,
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
...showValueSection,
[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'seriesType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'seriesType',
Expand Down
2 changes: 1 addition & 1 deletion plugins/plugin-chart-word-cloud/src/plugin/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const config: ControlPanelConfig = {
},
},
],
['color_scheme', 'label_colors'],
['color_scheme'],
],
},
],
Expand Down
2 changes: 1 addition & 1 deletion plugins/preset-chart-xy/src/BoxPlot/controlPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const config: ControlPanelConfig = {
label: t('Chart Options'),
expanded: true,
controlSetRows: [
['color_scheme', 'label_colors'],
['color_scheme'],
[
{
name: 'whisker_options',
Expand Down

0 comments on commit 38909cb

Please sign in to comment.