Merge pull request #21842 from LeoTindall/master

[chart.js] Allow plugins options to be of any type.
This commit is contained in:
Armando Aguirre
2017-12-01 12:23:25 -08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -44,7 +44,8 @@ const chart: Chart = new Chart(new CanvasRenderingContext2D(), {
zeroLineBorderDashOffset: 2
}
}]
}
},
plugins: { arbitraryPlugin: {option: "value"} }
}
});
chart.update();

View File

@@ -176,6 +176,8 @@ declare namespace Chart {
cutoutPercentage?: number;
circumference?: number;
rotation?: number;
// Plugins can require any options
plugins?: any;
}
interface ChartFontOptions {