Skip to content

Commit

Permalink
fix(plugin-chart-echarts): fix time-series chart xAxisShowMin(Max)Lab…
Browse files Browse the repository at this point in the history
…el default value (#1161)

* fix(plugin-chart-echarts): delete showMinLabel and showMaxLabel

fix #15042

* fix(plugin-chart-echarts):
  • Loading branch information
xiezhongfu authored and zhaoyongjie committed Nov 26, 2021
1 parent b9ca94e commit 2d408ce
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ const {
yAxisBounds,
zoomable,
xAxisLabelRotation,
xAxisShowMinLabel,
xAxisShowMaxLabel,
} = DEFAULT_FORM_DATA;
const config: ControlPanelConfig = {
controlPanelSections: [
Expand Down Expand Up @@ -334,30 +332,6 @@ const config: ControlPanelConfig = {
},
},
],
[
{
name: 'xAxisShowMinLabel',
config: {
type: 'CheckboxControl',
label: t('Show Min Label'),
default: xAxisShowMinLabel,
renderTrigger: true,
description: t('Show Min Label'),
},
},
],
[
{
name: 'xAxisShowMaxLabel',
config: {
type: 'CheckboxControl',
label: t('Show Max Label'),
default: xAxisShowMaxLabel,
renderTrigger: true,
description: t('Show Max Label'),
},
},
],
[
{
name: 'xAxisLabelRotation',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ export default function transformProps(chartProps: ChartProps): EchartsProps {
stack,
truncateYAxis,
yAxisFormat,
xAxisShowMinLabel,
xAxisShowMaxLabel,
xAxisTimeFormat,
yAxisBounds,
yAxisTitle,
Expand Down Expand Up @@ -148,8 +146,6 @@ export default function transformProps(chartProps: ChartProps): EchartsProps {
xAxis: {
type: 'time',
axisLabel: {
showMinLabel: xAxisShowMinLabel,
showMaxLabel: xAxisShowMaxLabel,
formatter: xAxisFormatter,
rotate: xAxisLabelRotation,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ export const DEFAULT_FORM_DATA: EchartsTimeseriesFormData = {
tooltipTimeFormat: 'smart_date',
truncateYAxis: true,
yAxisBounds: [null, null],
xAxisShowMinLabel: false,
xAxisShowMaxLabel: false,
zoomable: false,
richTooltip: true,
xAxisLabelRotation: 0,
Expand Down

0 comments on commit 2d408ce

Please sign in to comment.