Ссылка на Github: https://github.com/plotly/angular-plotly.js
import { Component } from '@angular/core';
@Component({
selector: 'plotly-example',
template: '<plotly-plot [data]="graph.data" [layout]="graph.layout"></plotly-plot>',
})
export class PlotlyExampleComponent {
public graph = {
data: [
{ x: [1, 2, 3], y: [2, 6, 3], type: 'scatter', mode: 'points', marker: {color: 'black'}, line: {color: 'black', width: 2, dash: 'dashdot'} },
{ x: [1, 2, 3], y: [2, 5, 3], type: 'scatter', mode: 'points', marker: {color: 'black'}, line: {color: 'black', width: 2, dash: 'dashdot'} }, ],
layout: {width: 320, height: 240, title: 'Plot'}
};
}
Как показать анимацию в линейных диаграммах, чтобы показать переход строки данных от начальной к конечной точке?