Skip to content

Commit

Permalink
fix(chart): remove exposed ChartJS interfaces
Browse files Browse the repository at this point in the history
The exposed interfaces makes it impossible to include and build lime-elements in other projects
  • Loading branch information
jgroth authored and adrianschmidt committed Sep 10, 2019
1 parent c15edb0 commit f327c1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/chart/chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ export class LChart {
* See the Chart.js documentation for your chosen [chart type](https://www.chartjs.org/docs/2.7.3/charts/).
*/
@Prop()
public datasets: Chart.ChartDataSets[] = [];
public datasets: any[] = [];

@Prop({ reflectToAttr: true })
public type: Chart.ChartType;
public type: string;

/**
* See the Chart.js documentation for [Global Configuration](https://www.chartjs.org/docs/2.7.3/configuration/) and for your chosen [chart type](https://www.chartjs.org/docs/2.7.3/charts/).
*/
@Prop()
public options: Chart.ChartOptions = {};
public options: any = {};

@Element()
private element: HTMLElement;
Expand Down Expand Up @@ -83,7 +83,7 @@ export class LChart {
.trim();
}

private getDatasetsWithColors(chartType: Chart.ChartType) {
private getDatasetsWithColors(chartType: string) {
return this.datasets.map((dataset, index) => {
if (dataset.backgroundColor || dataset.borderColor) {
return { ...dataset };
Expand Down

0 comments on commit f327c1b

Please sign in to comment.