Guest User

chart.component.html

a guest
May 7th, 2024
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.30 KB | None | 0 0
  1. @for (chart of charts; track chart; let i = $index) {
  2.   @if (chart.length && i < charts.length - 1) {
  3.    <span>{{ chart | json }}</span>
  4.    <ngx-charts-line-chart
  5.      [view]="view"
  6.      [results]="chart"
  7.      [animations]="animations"
  8.      [legend]="showLegend"
  9.      [legendTitle]="legendTitle"
  10.      [legendPosition]="legendPosition"
  11.      [xAxis]="showXAxis"
  12.      [yAxis]="showYAxis"
  13.      [showXAxisLabel]="showXAxisLabel"
  14.      [showYAxisLabel]="showYAxisLabel"
  15.      [xAxisLabel]="xAxisLabel"
  16.      [yAxisLabel]="yAxisLabel"
  17.      [timeline]="timeline"
  18.      [showGridLines]="showGridLines"
  19.      [roundDomains]="roundDomains"
  20.      [xAxisTickFormatting]="hideXTicks"
  21.    >
  22.    </ngx-charts-line-chart>
  23.  }
  24.  @else if (chart.length) {
  25.    <ngx-charts-line-chart
  26.      [view]="view"
  27.      [results]="chart"
  28.      [animations]="animations"
  29.      [legend]="showLegend"
  30.      [legendTitle]="legendTitle"
  31.      [legendPosition]="legendPosition"
  32.      [xAxis]="showXAxis"
  33.      [yAxis]="showYAxis"
  34.      [showXAxisLabel]="showXAxisLabel"
  35.      [showYAxisLabel]="showYAxisLabel"
  36.      [xAxisLabel]="xAxisLabel"
  37.      [yAxisLabel]="yAxisLabel"
  38.      [timeline]="timeline"
  39.      [showGridLines]="showGridLines"
  40.      [roundDomains]="roundDomains"
  41.    >
  42.    </ngx-charts-line-chart>
  43.  }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment