Dezimierung funktioniert nicht mit Magento2 und Diagramm JS

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Dezimierung funktioniert nicht mit Magento2 und Diagramm JS

by Anonymous » 11 May 2025, 21:50

Ich versuche, die Dezimierung mit Diagramm JS 4.4 in magento2 zu verwenden, aber es funktioniert nicht.

Code: Select all

new Chart(
document.getElementById(config.id),
{
type: 'line',
data: {
labels: data.map(row => row.arrival_time),
datasets: [
{
label: config.label,
data: data.map(row => row[dataName]),
radius : 0
}
]
},
options :
{
parsing: false,
plugins: {
decimation: {
enabled: true,
algorithm: 'lttb',
samples : 50,
},
},
}

}
);
Wenn ich den -Optionen als Kommentar einsetze, funktioniert es einwandfrei, aber ansonsten werden keine Daten angezeigt.

Top