This plugin really looks awesome! Anyway, maybe I am stupid but I cant make it work with ng2-charts:
import { ResponsiveDownsamplePlugin } from 'chartjs-plugin-responsive-downsample';
export class AppComponent {
// ...
chartPlugins = [ResponsiveDownsamplePlugin];
chartOptions: ChartOptions = {
aspectRatio: 3,
responsive: true,
legend: {display: false},
scales: {
xAxes: [
{
ticks: {
maxTicksLimit: 20
}
}
]
},
};
Template:
<canvas baseChart
[data]="chartData"
[options]="chartOptions"
[labels]="chartLabels"
[plugins]="chartPlugins"
chartType="line"
>
</canvas>
There is no error or something, i just doesnt downsample.
This plugin really looks awesome! Anyway, maybe I am stupid but I cant make it work with
ng2-charts:Template:
There is no error or something, i just doesnt downsample.