Skip to content

Commit

Permalink
fix: chart.theme as unrequired params (#4940)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepper-nice authored and hustcc committed May 16, 2023
1 parent f287f3f commit 4f8abaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/plots/api/chart-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ export function chartOptions(context) {
const { container, canvas } = context;

const chart = new Chart({
theme: 'classic',
container,
canvas,
});

chart.options({
theme: 'classic',
type: 'line',
clip: true,
data: {
Expand Down
2 changes: 1 addition & 1 deletion src/api/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export type ChartOptions = ViewComposition & {
autoFit?: boolean;
renderer?: CanvasRenderer;
plugins?: RendererPlugin[];
theme: string;
theme?: string;
};

type ChartProps = Concrete<ViewComposition>;
Expand Down

0 comments on commit 4f8abaa

Please sign in to comment.