Skip to content

Commit

Permalink
fix: chart.options do not show title (#5147)
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini authored Jun 2, 2023
1 parent ef2a31d commit 17eb842
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 0 deletions.
Binary file modified __tests__/integration/snapshots/api/chart-options/step0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified __tests__/integration/snapshots/api/chart-options/step1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions __tests__/plots/api/chart-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function chartOptions(context) {
theme: 'classic',
type: 'line',
clip: true,
title: '标题',
data: {
type: 'fetch',
value: 'data/aapl.csv',
Expand Down
1 change: 1 addition & 0 deletions src/api/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const VIEW_KEYS = [
'marginBottom',
'autoFit',
'theme',
'title',
];

export function normalizeContainer(
Expand Down

0 comments on commit 17eb842

Please sign in to comment.